Skip to content

Commit

Permalink
breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-osman3 committed Mar 27, 2024
1 parent 17f86ea commit 1dda090
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lightstep/sdk/metric/exporters/otlp/otelcol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewDefaultConfig() Config {
WriteBufferSize: 512 * 1024,
WaitForReady: true,
},
Arrow: otelarrowexporter.ArrowSettings{
Arrow: otelarrowexporter.ArrowConfig{
Disabled: true,
NumStreams: 1,
DisableDowngrade: true,
Expand Down Expand Up @@ -149,9 +149,9 @@ func NewExporter(ctx context.Context, cfg Config) (metric.PushExporter, error) {
c := &client{}

if !cfg.Exporter.Arrow.Disabled {
c.settings.ID = component.NewID("otel/sdk/metric/arrow")
c.settings.ID = component.NewID(component.MustNewType("otel_sdk_metric_arrow"))
} else {
c.settings.ID = component.NewID("otel/sdk/metric/otlp")
c.settings.ID = component.NewID(component.MustNewType("otel_sdk_metric_otlp"))
}
logger, err := zap.NewProduction()
if err != nil {
Expand Down Expand Up @@ -181,7 +181,7 @@ func NewExporter(ctx context.Context, cfg Config) (metric.PushExporter, error) {
}

bset := processor.CreateSettings{
ID: component.NewID("otel/sdk/metric/batch"),
ID: component.NewID(component.MustNewType("otel_sdk_metric_batch")),
TelemetrySettings: c.settings.TelemetrySettings,
BuildInfo: c.settings.BuildInfo,
}
Expand Down
8 changes: 4 additions & 4 deletions lightstep/sdk/trace/exporters/otlp/otelcol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func NewDefaultConfig() Config {
WriteBufferSize: 512 * 1024,
WaitForReady: true,
},
Arrow: otelarrowexporter.ArrowSettings{
Arrow: otelarrowexporter.ArrowConfig{
Disabled: true,
NumStreams: 1,
DisableDowngrade: true,
Expand Down Expand Up @@ -191,9 +191,9 @@ func NewExporter(ctx context.Context, cfg Config) (trace.SpanExporter, error) {
c := &client{}

if !cfg.Exporter.Arrow.Disabled {
c.settings.ID = component.NewID("otel/sdk/trace/arrow")
c.settings.ID = component.NewID(component.MustNewType("otel_sdk_trace_arrow"))
} else {
c.settings.ID = component.NewID("otel/sdk/trace/otlp")
c.settings.ID = component.NewID(component.MustNewType("otel_sdk_trace_otlp"))
}
logger, err := zap.NewProduction()
if err != nil {
Expand Down Expand Up @@ -229,7 +229,7 @@ func NewExporter(ctx context.Context, cfg Config) (trace.SpanExporter, error) {
}

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

0 comments on commit 1dda090

Please sign in to comment.