Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] [exporter/datadog] add config value for datadog components #36557

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Loading