chore(telemetry): exclude OTLP headers from configuration telemetry#18497
Conversation
|
ce2db44 to
c665d22
Compare
Codeowners resolved as |
BenchmarksBenchmark execution time: 2026-06-09 22:49:49 Comparing candidate commit 9293b0c in PR branch Found 0 performance improvements and 3 performance regressions! Performance is the same for 618 metrics, 10 unstable metrics. scenario:iastaspects-strip_noaspect
scenario:iastaspectsospath-ospathbasename_aspect
scenario:span-start
|
c665d22 to
9293b0c
Compare
…iguration telemetry Add a `sensitive: true` marker to the configuration registry and exclude any configuration carrying that marker from instrumentation configuration telemetry (the `configuration` array in app-started and app-client-configuration-change events). - supported-configurations.json: mark OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_LOGS_HEADERS, DD_API_KEY, and DD_APP_KEY as `sensitive: true`, and regenerate _supported_configurations.py (adds SENSITIVE_CONFIGURATIONS). - scripts/supported_configurations.py: emit SENSITIVE_CONFIGURATIONS from the registry's `sensitive` attribute. - ddtrace/internal/telemetry/__init__.py: honor SENSITIVE_CONFIGURATIONS in both get_config() and report_configuration() so a sensitive config's value is not reported. Non-sensitive OTLP exporter configurations are still reported. DD_API_KEY/DD_APP_KEY were already read with report_telemetry=False; the marker documents that intent and their runtime behavior is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
54fd6e0 to
865d0b5
Compare
314cdf9
into
main
Description
Marks the OpenTelemetry OTLP exporter header configurations as
sensitive: trueinsupported-configurations.jsonand excludes sensitive configurations from configuration telemetry:OTEL_EXPORTER_OTLP_HEADERS,OTEL_EXPORTER_OTLP_TRACES_HEADERS,OTEL_EXPORTER_OTLP_METRICS_HEADERS, andOTEL_EXPORTER_OTLP_LOGS_HEADERS. Other exporter configurations (endpoint, protocol, timeout) are unaffected.Testing
Unit tests in
tests/telemetry/test_writer.py.Risks
None.
Additional Notes
Release note included.