Skip to content

Commit 6428cd6

Browse files
authored
Update doc.go (open-telemetry#2030)
Add instructions on how to use an OTEL span as the parent of an OT span.
1 parent 311a639 commit 6428cd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bridge/opentracing/doc.go

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
// bridge tracer and then passing the chosen OpenTelemetry tracer to
2929
// the SetOpenTelemetryTracer() function of the bridge tracer.
3030
//
31+
// To use an OpenTelemetry span as the parent of an OpenTracing span,
32+
// create a context using the ContextWithBridgeSpan() function of
33+
// the bridge tracer, and then use the StartSpanFromContext function
34+
// of the OpenTracing API.
35+
//
3136
// Bridge tracer also allows the user to install a warning handler
3237
// through the SetWarningHandler() function. The warning handler will
3338
// be called when there is some misbehavior of the OpenTelemetry

0 commit comments

Comments
 (0)