Skip to content

Commit 31fb777

Browse files
committed
Note how OTel is set up
1 parent 0ad6c4b commit 31fb777

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/randomizer-lambda/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func main() {
5151
os.Exit(2)
5252
}
5353

54+
// OpenTelemetry is always active, but traces are only exported to AWS X-Ray
55+
// (and charged for usage) if enabled in the environment.
5456
tp := initTracerProvider(ctx, logger)
5557
otel.SetTracerProvider(tp)
5658
if xrayTracingEnabled {

0 commit comments

Comments
 (0)