Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Sep 27, 2023
1 parent dc001cd commit 2ad2776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/opencensus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func tracing(otExporter sdktrace.SpanExporter) {
tp.ForceFlush(ctx)

log.Println("Creating OpenTelemetry span\n-- It should have the OpenCensus span as a parent, since the OpenCensus span was written with using OpenTelemetry APIs.")
ctx, otspan := tracer.Start(ctx, "OpenTelemetrySpan")
ctx, otspan := tp.Tracer("simple").Start(ctx, "OpenTelemetrySpan")
otspan.End()
tp.ForceFlush(ctx)

Expand Down

0 comments on commit 2ad2776

Please sign in to comment.