Skip to content

Add span_name_sanitization as user-configurable override - #6411

Merged
zalegrala merged 4 commits into
mainfrom
devdeploy/span-metrics-cardinality-controls-ezx
Feb 11, 2026
Merged

Add span_name_sanitization as user-configurable override#6411
zalegrala merged 4 commits into
mainfrom
devdeploy/span-metrics-cardinality-controls-ezx

Conversation

@Logiraptor

@Logiraptor Logiraptor commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds span_name_sanitization as a user-configurable override, allowing tenants to enable the DRAIN span name sanitizer through the overrides API without requiring operator configuration changes
  • Includes validation to ensure only valid sanitization modes can be configured
  • Adds comprehensive unit and integration tests

Test plan

  • Unit tests for LimitsMetricsGenerator field and getter
  • Unit tests for limitsFromOverrides() conversion
  • Unit tests for validation logic
  • Integration test for overrides API endpoint

Made with Cursor

Logiraptor and others added 3 commits February 9, 2026 15:39
This adds support for configuring span_name_sanitization through the
user-configurable overrides API, allowing tenants to enable the DRAIN
span name sanitizer without requiring operator configuration changes.

Changes:
- Add SpanNameSanitization field to LimitsMetricsGenerator
- Add MetricsGeneratorSpanNameSanitization() to overrides manager
- Add validation for span_name_sanitization in overrides API
- Add comprehensive tests for the new configuration option
- Add integration test for the overrides API endpoint

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

💻 Deploy preview deleted (Add span_name_sanitization as user-configurable override).

@zalegrala zalegrala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me. Thanks for the contribution.

@zalegrala
zalegrala merged commit 35d1d71 into main Feb 11, 2026
25 checks passed
@zalegrala
zalegrala deleted the devdeploy/span-metrics-cardinality-controls-ezx branch February 11, 2026 17:01
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
* Add span_name_sanitization as user-configurable override

This adds support for configuring span_name_sanitization through the
user-configurable overrides API, allowing tenants to enable the DRAIN
span name sanitizer without requiring operator configuration changes.

Changes:
- Add SpanNameSanitization field to LimitsMetricsGenerator
- Add MetricsGeneratorSpanNameSanitization() to overrides manager
- Add validation for span_name_sanitization in overrides API
- Add comprehensive tests for the new configuration option
- Add integration test for the overrides API endpoint

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add PR link

* Add documentation for span_name_sanitization override

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants