Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman authored and ycombinator committed Jun 7, 2024
1 parent b83b5c4 commit a7fa9e4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/pkg/otel/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,11 @@ func newSettings(version string, configPaths []string) (*otelcol.CollectorSettin
},
},
}
provider, err := otelcol.NewConfigProvider(configProviderSettings)
if err != nil {
return nil, err
}

return &otelcol.CollectorSettings{
Factories: components,
BuildInfo: buildInfo,
ConfigProvider: provider,
Factories: components,
BuildInfo: buildInfo,
ConfigProviderSettings: configProviderSettings,
// we're handling DisableGracefulShutdown via the cancelCtx being passed
// to the collector's Run method in the Run function
DisableGracefulShutdown: true,
Expand Down

0 comments on commit a7fa9e4

Please sign in to comment.