Skip to content

Commit 0da8027

Browse files
authored
Correct the http and grpc API calls for Go (#4413)
1 parent 1ba0c6c commit 0da8027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/languages/go/exporters.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import (
9494
)
9595

9696
func newExporter(ctx context.Context) (trace.SpanExporter, error) {
97-
return otlptracehttp.New(ctx, client)
97+
return otlptracehttp.New(ctx)
9898
}
9999
```
100100

@@ -112,7 +112,7 @@ import (
112112
)
113113

114114
func newExporter(ctx context.Context) (trace.SpanExporter, error) {
115-
return otlptracegrpc.New(ctx, client)
115+
return otlptracegrpc.New(ctx)
116116
}
117117
```
118118

0 commit comments

Comments
 (0)