Skip to content

Commit 4d62113

Browse files
committed
add doc comment
1 parent 33cfd74 commit 4d62113

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

telemetry/exporter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func TracerProvider(ctx context.Context, service string) (*sdktrace.TracerProvid
2121
),
2222
)
2323

24+
// By default we send span data to a local otel collector.
25+
// The endpoint we push to can be configured with env vars.
26+
// See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md
2427
exporter, err := otlptrace.New(ctx, otlptracegrpc.NewClient(otlptracegrpc.WithInsecure()))
2528
if err != nil {
2629
return nil, xerrors.Errorf("creating otlp exporter: %w", err)

0 commit comments

Comments
 (0)