Skip to content

Commit

Permalink
Fix SIGSEGV due to missing ReportComponentStatus facility
Browse files Browse the repository at this point in the history
  • Loading branch information
gebn committed Dec 3, 2023
1 parent fdc7ecb commit c7d70f7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions modules/distributor/receiver/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,16 @@ func New(receiverCfg map[string]interface{}, pusher TracesPusher, middleware Mid

// todo: propagate a real context? translate our log configuration into zap?
ctx := context.Background()
params := receiver.CreateSettings{TelemetrySettings: component.TelemetrySettings{
Logger: zapLogger,
TracerProvider: tracenoop.NewTracerProvider(),
MeterProvider: metricnoop.NewMeterProvider(),
}}
params := receiver.CreateSettings{
TelemetrySettings: component.TelemetrySettings{
Logger: zapLogger,
TracerProvider: tracenoop.NewTracerProvider(),
MeterProvider: metricnoop.NewMeterProvider(),
ReportComponentStatus: func(*component.StatusEvent) error {
return nil
},
},
}

for componentID, cfg := range conf.Receivers {
factoryBase := receiverFactories[componentID.Type()]
Expand Down

0 comments on commit c7d70f7

Please sign in to comment.