-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix http_check instance tag normalization to preserve minuses #21381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix http_check instance tag normalization to preserve minuses #21381
Conversation
- Add normalize_instance_tag() method that correctly preserves minuses (-) in instance tags - Update documentation to reflect correct tag normalization behavior - Fix test expectations to match preserved minuses behavior - Resolves inconsistency with DataDog tag rules and other integrations Fixes DataDog#21103
DataDog auto-generates this file, so we should not modify the documentation manually. The actual behavior change is implemented in the code only.
- Remove trailing spaces and fix docstring formatting - Ensure proper line spacing according to DataDog linting rules
Restore instance tag generation in _get_service_checks_tags method that was accidentally removed in previous commit.
Codecov Report❌ Patch coverage is Additional details and impacted files🚀 New features to boost your workflow:
|
2519bc3
to
2025d19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting a few edits for branding and consistency
Co-authored-by: Bryce Eadie <[email protected]>
Co-authored-by: Bryce Eadie <[email protected]>
Co-authored-by: Bryce Eadie <[email protected]>
Co-authored-by: Bryce Eadie <[email protected]>
Co-authored-by: Bryce Eadie <[email protected]>
@buraizu Thanks for catching the branding inconsistencies! |
What does this PR do?
Fixes the
http_check
integration's instance tag normalization to correctly preserve minuses (-
) in tag values, making it consistent with DataDog's official tag rules and other integrations.Motivation
Users reported in #21103 that the
http_check
integration incorrectly converts minuses to underscores in instance tags, which violates DataDog's tag documentation and creates inconsistency with other integrations likepostgres
that preserve minuses correctly.Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged