Skip to content

Commit

Permalink
fix(otel): send traces to localhost over http for now
Browse files Browse the repository at this point in the history
  • Loading branch information
willejs committed Aug 20, 2024
1 parent 12ddc65 commit 0c4351f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/infrastructure/otel/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ func NewProviders(serviceName string) (*Providers, func(), error) {

ctx := context.Background()

otlpExporter, err := otlptracehttp.New(ctx)
otlpExporter, err := otlptracehttp.New(ctx,
// send this to a local otel collector for now, allow overrides later
otlptracehttp.WithEndpoint("http://localhost:4318"),
// we are presuming this happens over a service mesh or locally on the node etc
otlptracehttp.WithInsecure(),
)
if err != nil {
return nil, nil, fmt.Errorf("failed to create the otlp exporter: %w", err)
}
Expand Down

0 comments on commit 0c4351f

Please sign in to comment.