Skip to content

Commit 6834c57

Browse files
authored
Fix otel config with nodetreemodel implementation (#42031)
### What does this PR do? Not using the default config means doing the init steps manually ### Describe how you validated your changes `opentelemetry-agent` need to validate the change with manual QA.
1 parent 8ff7142 commit 6834c57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • comp/otelcol/otlp/components/exporter/serializerexporter

comp/otelcol/otlp/components/exporter/serializerexporter/serializer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ func InitSerializer(logger *zap.Logger, cfg *ExporterConfig, sourceProvider sour
122122
fxutil.FxAgentBase(),
123123
fx.Provide(func() config.Component {
124124
pkgconfig := create.NewConfig("DD")
125+
pkgconfigsetup.InitConfig(pkgconfig)
126+
pkgconfig.BuildSchema()
125127

126128
// Set the API Key
127129
pkgconfig.Set("api_key", string(cfg.API.Key), pkgconfigmodel.SourceFile)

0 commit comments

Comments
 (0)