Skip to content

Commit

Permalink
Make the example compile (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed May 16, 2023
1 parent 478fe63 commit ceb4457
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/trace/README.md
Expand Up @@ -41,6 +41,7 @@ func main() {
otel.SetTracerProvider(tp)

tracer := tp.Tracer("example.com/trace")
ctx := context.TODO()
ctx, span := tracer.Start(ctx, "foo")
defer span.End()

Expand Down

0 comments on commit ceb4457

Please sign in to comment.