Skip to content

Add span_name_sanitization as user-configurable override#6411

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

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

Conversation

@Logiraptor
Copy link
Copy Markdown
Contributor

@Logiraptor Logiraptor commented Feb 9, 2026

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
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

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

Copy link
Copy Markdown
Contributor

@zalegrala zalegrala left a comment

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
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.

2 participants