Skip to content

Commit

Permalink
add logs_config.pipelines value to maintain compatibility with upstre…
Browse files Browse the repository at this point in the history
…am datadog agent
  • Loading branch information
jackgopack4 committed Nov 26, 2024
1 parent a5068da commit dd77ed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exporter/datadogexporter/agent_components.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package datadogexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter"

import (
"runtime"
"strings"

coreconfig "github.com/DataDog/datadog-agent/comp/core/config"
Expand Down Expand Up @@ -46,6 +47,8 @@ func newConfigComponent(set component.TelemetrySettings, cfg *Config) coreconfig
pkgconfig.Set("logs_config.stop_grace_period", 30, pkgconfigmodel.SourceDefault)
pkgconfig.Set("logs_config.use_v2_api", true, pkgconfigmodel.SourceDefault)
pkgconfig.SetKnown("logs_config.dev_mode_no_ssl")

// add logs config pipelines config value, see https://github.com/DataDog/datadog-agent/pull/31190
logsPipelines := min(4, runtime.GOMAXPROCS(0))
pkgconfig.Set("logs_config.pipelines", logsPipelines, pkgconfigmodel.SourceDefault)
return pkgconfig
}

0 comments on commit dd77ed2

Please sign in to comment.