Skip to content

Commit

Permalink
Merge pull request #2499 from DataDog/feature/enable_telemetry_by_def…
Browse files Browse the repository at this point in the history
…ault

Changed: Enable telemetry by default
  • Loading branch information
delner authored Dec 21, 2022
2 parents 0145b16 + f5944e1 commit 89d7ebf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ end
| `tags` | `DD_TAGS` | `nil` | Custom tags in value pairs separated by `,` (e.g. `layer:api,team:intake`) These tags are set on all traces. See [Environment and tags](#environment-and-tags) for more details. |
| `time_now_provider` | | `->{ Time.now }` | Changes how time is retrieved. See [Setting the time provider](#Setting the time provider) for more details. |
| `version` | `DD_VERSION` | `nil` | Your application version (e.g. `2.5`, `202003181415`, `1.3-alpha`, etc.) This value is set as a tag on all traces. |
| `telemetry.enabled` | `DD_INSTRUMENTATION_TELEMETRY_ENABLED` | `false` | Allows you to enable sending telemetry data to Datadog. In a future release, we will be setting this to `true` by default, as documented [here](https://docs.datadoghq.com/tracing/configure_data_security/#telemetry-collection). |
| `telemetry.enabled` | `DD_INSTRUMENTATION_TELEMETRY_ENABLED` | `true` | Allows you to enable sending telemetry data to Datadog. Can be disabled, as documented [here](https://docs.datadoghq.com/tracing/configure_data_security/#telemetry-collection). |
| **Tracing** | | | |
| `tracing.analytics.enabled` | `DD_TRACE_ANALYTICS_ENABLED` | `nil` | Enables or disables trace analytics. See [Sampling](#sampling) for more details. |
| `tracing.distributed_tracing.propagation_extract_style` | `DD_TRACE_PROPAGATION_STYLE_EXTRACT` | `['Datadog','b3multi','b3']` | Distributed tracing propagation formats to extract. Overrides `DD_TRACE_PROPAGATION_STYLE`. See [Distributed Tracing](#distributed-tracing) for more details. |
Expand Down
6 changes: 3 additions & 3 deletions lib/datadog/core/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ def initialize(*_)
settings :telemetry do
# Enable telemetry collection. This allows telemetry events to be emitted to the telemetry API.
#
# @default `DD_INSTRUMENTATION_TELEMETRY_ENABLED` environment variable, otherwise `false`. In a future release,
# this value will be changed to `true` by default as documented [here](https://docs.datadoghq.com/tracing/configure_data_security/#telemetry-collection).
# @default `DD_INSTRUMENTATION_TELEMETRY_ENABLED` environment variable, otherwise `true`.
# Can be disabled as documented [here](https://docs.datadoghq.com/tracing/configure_data_security/#telemetry-collection).
# @return [Boolean]
option :enabled do |o|
o.default { env_to_bool(Core::Telemetry::Ext::ENV_ENABLED, false) }
o.default { env_to_bool(Core::Telemetry::Ext::ENV_ENABLED, true) }
o.lazy
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/core/configuration/settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@
context 'is not defined' do
let(:environment) { nil }

it { is_expected.to be false }
it { is_expected.to be true }
end

{ 'true' => true, 'false' => false }.each do |string, value|
Expand Down

0 comments on commit 89d7ebf

Please sign in to comment.