Skip to content
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

Add Cardinality common field #883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wdhif
Copy link
Member

@wdhif wdhif commented Jan 14, 2025

What does this PR do?

Implement the card: common field to DogStatsD Datagram spec. This new field is used to override the Agent cardinality.

Description of the Change

Adds a new cardinality setting that can be either:

  • Defined globally as an option
  • Override on a per-metrics basis

This settings is then send as the card: common field.

Alternate Designs

Possible Drawbacks

None

Verification Process

Unit tests have been implemented to test the feature. QA has been done manually and can be found in DataDog/datadog-agent#32917.

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@wdhif wdhif changed the title feat(origindetection): implement cardinality common field Add Cardinality common field Jan 14, 2025
tests/performance/test_statsd_throughput.py Outdated Show resolved Hide resolved
datadog/dogstatsd/base.py Outdated Show resolved Hide resolved
@wdhif wdhif force-pushed the CONTP-582/wassim.dhif/implement-cardinality-common-field branch 4 times, most recently from 4f4fc36 to a31858a Compare January 15, 2025 11:05
@wdhif wdhif added the changelog/Added Added features results into a minor version bump label Jan 15, 2025
@wdhif wdhif force-pushed the CONTP-582/wassim.dhif/implement-cardinality-common-field branch 2 times, most recently from 39739aa to 561c672 Compare January 15, 2025 11:22
@wdhif wdhif force-pushed the CONTP-582/wassim.dhif/implement-cardinality-common-field branch 19 times, most recently from c84a131 to 9bfa236 Compare January 15, 2025 15:33
@wdhif wdhif force-pushed the CONTP-582/wassim.dhif/implement-cardinality-common-field branch from 9bfa236 to 25d7aec Compare January 17, 2025 14:51
@wdhif wdhif marked this pull request as ready for review January 20, 2025 10:43
@wdhif wdhif requested review from a team as code owners January 20, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/Added Added features results into a minor version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant