Skip to content

Commit

Permalink
Give distinct names to the trace/metrics batch processors in the otel…
Browse files Browse the repository at this point in the history
…col-based exporters (#587)

**Description:** The trace and metric SDKs both use the same processor
with the same name, which makes a single-writer rule violation. Insert
"trace" and "metric" accordingly, following the pattern used for the
exporters (which _did_ distinguish the two already).
  • Loading branch information
jmacd authored Dec 13, 2023
1 parent ffdd1b8 commit 55a06b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightstep/sdk/metric/exporters/otlp/otelcol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func NewExporter(ctx context.Context, cfg Config) (metric.PushExporter, error) {
}

bset := processor.CreateSettings{
ID: component.NewID("otel/sdk/batch"),
ID: component.NewID("otel/sdk/metric/batch"),
TelemetrySettings: c.settings.TelemetrySettings,
BuildInfo: c.settings.BuildInfo,
}
Expand Down
2 changes: 1 addition & 1 deletion lightstep/sdk/trace/exporters/otlp/otelcol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func NewExporter(ctx context.Context, cfg Config) (trace.SpanExporter, error) {
}

bset := processor.CreateSettings{
ID: component.NewID("otel/sdk/batch"),
ID: component.NewID("otel/sdk/trace/batch"),
TelemetrySettings: c.settings.TelemetrySettings,
BuildInfo: c.settings.BuildInfo,
}
Expand Down

0 comments on commit 55a06b4

Please sign in to comment.