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

pkg/trace/{agent,stats}: add tag for synthetic data #6955

Merged
merged 7 commits into from
Dec 15, 2020

Conversation

kristinekunapuli
Copy link
Contributor

@kristinekunapuli kristinekunapuli commented Dec 10, 2020

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.

@kristinekunapuli kristinekunapuli requested a review from a team as a code owner December 10, 2020 20:15
@bits-bot
Copy link
Collaborator

bits-bot commented Dec 10, 2020

CLA assistant check
All committers have signed the CLA.

@kristinekunapuli kristinekunapuli marked this pull request as draft December 10, 2020 20:15
@gbbr gbbr requested a review from bmermet December 11, 2020 07:40
@gbbr gbbr added the team/agent-apm trace-agent label Dec 11, 2020
@gbbr gbbr added this to the Triage milestone Dec 11, 2020
@kristinekunapuli kristinekunapuli marked this pull request as ready for review December 14, 2020 19:50
@@ -10,6 +10,8 @@ const (
tagHostname = "_dd.hostname"
tagStatusCode = "http.status_code"
tagVersion = "version"
tagOrigin = "_dd.origin"
tagSynthetic = "synthetic"
Copy link
Contributor

@bmermet bmermet Dec 15, 2020

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 ?

Copy link
Contributor Author

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!

@gbbr gbbr changed the title [apm][stats] add tag for synthetic data pkg/trace/{agent,stats}: add tag for synthetic data Dec 15, 2020
Copy link
Contributor

@bmermet bmermet left a comment

Choose a reason for hiding this comment

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

LGTM.

@kristinekunapuli kristinekunapuli merged commit b9e978a into master Dec 15, 2020
@kristinekunapuli kristinekunapuli deleted the kunapuli/synthetic-tag-for-stats branch December 15, 2020 17:45
@gbbr
Copy link
Contributor

gbbr commented Dec 16, 2020

Please don't merge things during the freeze 🙂 🥶 🤭

kristinekunapuli added a commit that referenced this pull request Dec 16, 2020
gbbr pushed a commit that referenced this pull request Dec 16, 2020
@kristinekunapuli kristinekunapuli restored the kunapuli/synthetic-tag-for-stats branch January 7, 2021 18:00
sergei-deliveroo pushed a commit to deliveroo/datadog-agent that referenced this pull request Mar 24, 2021
* [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'
sergei-deliveroo pushed a commit to deliveroo/datadog-agent that referenced this pull request Mar 24, 2021
sergei-deliveroo pushed a commit to deliveroo/datadog-agent that referenced this pull request Mar 24, 2021
@dd-devflow dd-devflow bot deleted the kunapuli/synthetic-tag-for-stats branch April 19, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team/agent-apm trace-agent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants