Skip to content

feat(telemetry): append DD_TAGS to forwarder telemetry metric tags#1146

Open
patbos wants to merge 1 commit into
DataDog:masterfrom
patbos:master
Open

feat(telemetry): append DD_TAGS to forwarder telemetry metric tags#1146
patbos wants to merge 1 commit into
DataDog:masterfrom
patbos:master

Conversation

@patbos

@patbos patbos commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1145

DD_TAGS is currently applied to forwarded log events but not to internal forwarder telemetry metrics (e.g. aws.dd_forwarder.logs_forwarded). This makes it impossible to filter or group those metrics by custom dimensions such as environment or AWS account ID.

Changes

  • telemetry.py: import DD_TAGS from settings and append its parsed tags to DD_FORWARDER_TELEMETRY_TAGS in set_forwarder_telemetry_tags()
  • Tags are split on ,, stripped of surrounding whitespace, and empty segments are ignored - consistent with how DD_TAGS is handled for log events in steps/common.py
  • tests/test_telemetry.py: new test file covering base tags, single tag, multiple tags, whitespace stripping, empty segment filtering, and function name lowercasing

@patbos
patbos requested a review from a team as a code owner June 5, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support DD_TAGS on internal forwarder telemetry metrics

1 participant