You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Datadog exporter currently detects some DD_ prefixed environment variables and sets the value of some configuration settings from its value automatically. For example, if you set your API key on the DD_API_KEY environment variable, the exporter will use it automatically.
To be consistent with the rest of Collectors components, support for this automatic detection is being removed, in favor of explicitly declaring the environment variable holding a configuration value (see next sections for details).
Full list of environment variables which will not be automatically detected in the future (click to expand)
DD_API_KEY
DD_SITE
DD_HOST
DD_ENV
DD_SERVICE
DD_VERSION
DD_TAGS
DD_URL
DD_APM_URL
Who is affected?
If you use one of the environment variables above but do not explicitly declare them in the configuration, you are affected. If you are using it, a warning will be logged for each environment variable that you are using, together with a link to this issue.
An example warning when using DD_API_KEY without setting it explicitly:
Deprecated: "api.key" will not default to "DD_API_KEY"'s value starting on v0.50.0. Set api.key: ${DD_API_KEY} to remove this warning
Deprecated: see github.com/open-telemetry/opentelemetry-collector-contrib/issues/8396 for more details
What should I do if I am affected?
You need to set the environment variable explicitly on the configuration by using the ${} syntax. If using the DD_TAGS environment variable, you need to use an env configuration source instead.
Example with DD_API_KEY and DD_HOST (click to expand)
If you have the following configuration for the Datadog exporter:
with an environment including DD_TAGS set to tagone:valone tagtwo:valtwo, you need to create a new environment variable, e.g COLLECTOR_EXTRA_CONFIG with value exporters::datadog::tags: ["tagone:valone", "tagtwo:valtwo"]
and pass the --config config.yaml --config env:COLLECTOR_EXTRA_CONFIG flags to your Collector binary. Configuration from the config.yaml file and the COLLECTOR_EXTRA_CONFIG environment variable will be merged when starting the Collector.
When will it change?
To be filled when this happens
Change description
Version of deprecation
Version of removal
Removal of automatic env variable detection
v0.47.0
v0.56.0
The text was updated successfully, but these errors were encountered:
What will change?
The Datadog exporter currently detects some
DD_
prefixed environment variables and sets the value of some configuration settings from its value automatically. For example, if you set your API key on theDD_API_KEY
environment variable, the exporter will use it automatically.To be consistent with the rest of Collectors components, support for this automatic detection is being removed, in favor of explicitly declaring the environment variable holding a configuration value (see next sections for details).
Full list of environment variables which will not be automatically detected in the future (click to expand)
DD_API_KEY
DD_SITE
DD_HOST
DD_ENV
DD_SERVICE
DD_VERSION
DD_TAGS
DD_URL
DD_APM_URL
Who is affected?
If you use one of the environment variables above but do not explicitly declare them in the configuration, you are affected. If you are using it, a warning will be logged for each environment variable that you are using, together with a link to this issue.
An example warning when using
DD_API_KEY
without setting it explicitly:What should I do if I am affected?
You need to set the environment variable explicitly on the configuration by using the
${}
syntax. If using theDD_TAGS
environment variable, you need to use anenv
configuration source instead.Example with
DD_API_KEY
andDD_HOST
(click to expand)If you have the following configuration for the Datadog exporter:
and you set the environment variables
DD_API_KEY
andDD_HOST
on the Collector's environment, you need to update your configuration to look as follows:Example with
DD_TAGS
(click to expand)The
DD_TAGS
environment variable is a special case, since the Collector expansion feature only supports scalar values.If your configuration looks like this and is stored in a file
config.yaml
:with an environment including
DD_TAGS
set totagone:valone tagtwo:valtwo
, you need to create a new environment variable, e.gCOLLECTOR_EXTRA_CONFIG
with valueexporters::datadog::tags: ["tagone:valone", "tagtwo:valtwo"]
and pass the
--config config.yaml --config env:COLLECTOR_EXTRA_CONFIG
flags to your Collector binary. Configuration from theconfig.yaml
file and theCOLLECTOR_EXTRA_CONFIG
environment variable will be merged when starting the Collector.When will it change?
To be filled when this happens
The text was updated successfully, but these errors were encountered: