-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pkg/trace/{agent,stats}: add tag for synthetic data #6955
Conversation
pkg/trace/stats/aggregation.go
Outdated
@@ -10,6 +10,8 @@ const ( | |||
tagHostname = "_dd.hostname" | |||
tagStatusCode = "http.status_code" | |||
tagVersion = "version" | |||
tagOrigin = "_dd.origin" | |||
tagSynthetic = "synthetic" |
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.
Why is the tag called synthetic
rather than synthetics
like in _dd.origin
?
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.
That's my mistake. I'll fix it. Thank you!
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.
LGTM.
Please don't merge things during the freeze 🙂 🥶 🤭 |
This reverts commit b9e978a.
* [apm][stats] add tag for synthetic data * [apm] simplify determining if origin is synthetic data * add release note * fix unit tests * all for client-computed stats to set synthetic tag * change tag to 'synthetics'
…6955)" (DataDog#6997) This reverts commit b9e978a.
…ataDog#6955)" (DataDog#6997)" (DataDog#7121) This reverts commit 9046ed2.
What does this PR do?
Adds the tag "synthetic:true" when _dd.origin has a value starting with "synthetics". This is to allow independent aggregation of metrics generated from stats payloads.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.