Skip to content

Commit

Permalink
Replace otlptracehttp example to use otlptracehttp instead of otlptra…
Browse files Browse the repository at this point in the history
…ce (#4574)
  • Loading branch information
with-shrey authored Oct 3, 2023
1 parent 0e874c3 commit c7f53cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exporters/otlp/otlptrace/otlptracehttp/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"log"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
"go.opentelemetry.io/otel/sdk/resource"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
Expand Down Expand Up @@ -66,8 +65,7 @@ func newResource() *resource.Resource {
}

func installExportPipeline(ctx context.Context) (func(context.Context) error, error) {
client := otlptracehttp.NewClient()
exporter, err := otlptrace.New(ctx, client)
exporter, err := otlptracehttp.New(ctx)
if err != nil {
return nil, fmt.Errorf("creating OTLP trace exporter: %w", err)
}
Expand Down

0 comments on commit c7f53cc

Please sign in to comment.