Skip to content

Commit

Permalink
Correct the http and grpc API calls for Go (#4413)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored May 2, 2024
1 parent 1ba0c6c commit 0da8027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/languages/go/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import (
)

func newExporter(ctx context.Context) (trace.SpanExporter, error) {
return otlptracehttp.New(ctx, client)
return otlptracehttp.New(ctx)
}
```

Expand All @@ -112,7 +112,7 @@ import (
)

func newExporter(ctx context.Context) (trace.SpanExporter, error) {
return otlptracegrpc.New(ctx, client)
return otlptracegrpc.New(ctx)
}
```

Expand Down

0 comments on commit 0da8027

Please sign in to comment.