Skip to content

feat: implement additional metric tags for trace stats#140

Draft
duncanpharvey wants to merge 4 commits into
mainfrom
duncan-harvey/trace-stats-additional-metric-tags
Draft

feat: implement additional metric tags for trace stats#140
duncanpharvey wants to merge 4 commits into
mainfrom
duncan-harvey/trace-stats-additional-metric-tags

Conversation

@duncanpharvey

@duncanpharvey duncanpharvey commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

  • Add DD_TRACE_STATS_ADDITIONAL_TAGS setting for adding additional tags to trace stats.
  • Add DD_TRACE_STATS_ADDITIONAL_TAGS_CARDINALITY_LIMIT to limit number of distinct stats entries (default of 100 in libdd-trace-stats if no value is passed).
  • Add DD_TRACE_EXPERIMENTAL_FEATURES_ENABLED to gate the behavior behind DD_TRACE_STATS_ADDITIONAL_TAGS and DD_TRACE_STATS_ADDITIONAL_TAGS_CARDINALITY_LIMIT.

Motivation

Allow Serverless Compatibility Layer to send additional metric tags on trace stats.

https://datadoghq.atlassian.net/browse/SVLS-8787

Additional Notes

Dependent on these changes in libdatadog: DataDog/libdatadog#2170

Describe how to test/QA your changes

@duncanpharvey duncanpharvey force-pushed the duncan-harvey/trace-stats-additional-metric-tags branch from 6fae257 to e38ada5 Compare June 29, 2026 14:11
@datadog-datadog-prod-us1-2

This comment has been minimized.

@duncanpharvey duncanpharvey changed the title feat: implement implement additional metric tags for trace stats feat: implement additional metric tags for trace stats Jun 29, 2026
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/trace-stats-additional-metric-tags branch from e38ada5 to ec966d8 Compare June 29, 2026 16:05
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.

1 participant