Skip to content

Commit

Permalink
fix: remove unsupported environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dmehala committed May 3, 2024
1 parent d20d86b commit 5d832a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Configuration can be set either through the plugin configuration field or enviro
| `environment` | `DD_ENV` | Add `env` tag for [Unified Service Tagging](https://docs-staging.datadoghq.com/dmehala/cpp-updates/getting_started/tagging/unified_service_tagging/?tab=kubernetes) | `v0.0.1` | `string` | `nil` |
| `version` | `DD_VERSION` | Sets the version of the service and add `version` tag for [Unified Service Tagging](https://docs-staging.datadoghq.com/dmehala/cpp-updates/getting_started/tagging/unified_service_tagging/?tab=kubernetes) | `v0.2.0` | `string` | `nil` |
| `static_tags` | | List of tags to be added to root spans | `v0.0.1` | `array[tag] with tag = {name=str, value=str}]` | `nil` |
| `injection_propagation_styles` | `DD_TRACE_PROPAGATION_STYLE_INJECT` | Propagation style used for injecting trace context | `v0.2.0` | `array[str]` | `{ "datadog", "tracecontext"}` |
| `extraction_propagation_styles` | `DD_TRACE_PROPAGATION_STYLE_EXTRACT` | Propagation style used for extracting trace context. Values are limited to `datadog` and `tracecontext`. | `v0.2.0` | `array[str]` | `{ "datadog", "tracecontext"}` |
| `injection_propagation_styles` | | Propagation style used for injecting trace context | `v0.2.0` | `array[str]` | `{ "datadog", "tracecontext"}` |
| `extraction_propagation_styles` | | Propagation style used for extracting trace context. Values are limited to `datadog` and `tracecontext`. | `v0.2.0` | `array[str]` | `{ "datadog", "tracecontext"}` |
| `initial_sample_rate` | | Set the sampling rate for all generated traces. The value must be between `0.0` and `1.0` (inclusive) | `v0.0.1` | `float` | `1.0` |
| `intial_samples_per_second` | | Maximum number of traces allowed to be submitted per second | `v0.0.1` | `number` | `100` |
| `resource_name_rule` | | Replace matching resources to lower the cardinality on resource names | `v0.0.1` | `array[rule] with rule = {match=str, replacement=str}]` | `nil` |
Expand Down
6 changes: 2 additions & 4 deletions kong/plugins/ddtrace/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ local function configure(conf)
environment = get_env("DD_ENV") or conf.environment,
version = get_env("DD_VERSION") or conf.version,
agent_url = get_env("DD_TRACE_AGENT_URL") or conf.trace_agent_url or agent_url,
injection_propagation_styles = get_env("DD_TRACE_PROPAGATION_STYLE_INJECT")
or conf.injection_propagation_styles,
extraction_propagation_styles = get_env("DD_TRACE_PROPAGATION_STYLE_EXTRACT")
or conf.extraction_propagation_styles,
injection_propagation_styles = conf.injection_propagation_styles,
extraction_propagation_styles = conf.extraction_propagation_styles,
}

kong.log.info("DATADOG TRACER CONFIGURATION - " .. utils.dump(ddtrace_conf))
Expand Down

0 comments on commit 5d832a4

Please sign in to comment.