From 6428cd6931635173b9359324e8c13cb23511dd44 Mon Sep 17 00:00:00 2001 From: Eron Wright Date: Fri, 25 Jun 2021 07:56:12 -0700 Subject: [PATCH] Update doc.go (#2030) Add instructions on how to use an OTEL span as the parent of an OT span. --- bridge/opentracing/doc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridge/opentracing/doc.go b/bridge/opentracing/doc.go index 7121e2a6f..5b97ee334 100644 --- a/bridge/opentracing/doc.go +++ b/bridge/opentracing/doc.go @@ -28,6 +28,11 @@ // bridge tracer and then passing the chosen OpenTelemetry tracer to // the SetOpenTelemetryTracer() function of the bridge tracer. // +// To use an OpenTelemetry span as the parent of an OpenTracing span, +// create a context using the ContextWithBridgeSpan() function of +// the bridge tracer, and then use the StartSpanFromContext function +// of the OpenTracing API. +// // Bridge tracer also allows the user to install a warning handler // through the SetWarningHandler() function. The warning handler will // be called when there is some misbehavior of the OpenTelemetry