Skip to content

Commit f6ccc98

Browse files
committed
Fix otel config with nodetreemodel implementation
Not using the default config means doing the init steps manually
1 parent bf4f327 commit f6ccc98

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)