-
Notifications
You must be signed in to change notification settings - Fork 10
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 test to check absence of client computed stats #3812
Conversation
ebd5622
to
ef1e175
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.
I'm not sure if there is a current test in another scenario that checks this datadog-client-computed-stats header, but IMHO we need one more test case that checks datadog-client-computed-stats=true when standalone billing is disabled and metrics enabled, to ensure the previous is working as before the asm feature was implemented.
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.
Not sure if I'm following you correctly. How would you make APM to send the header datadog-client-computed-stats=true
? In PHP that header was not sent
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.
Maybe it's something that only happens in java, but the header is set with empty value, but to keep it simple we can continue with the PR as it is
06e9ddb
to
39a1b00
Compare
4dacb21
to
9d85bd9
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.
Need to add new scenario in the CI
3500a27
to
e954ad2
Compare
a76ca84
to
edb3d81
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.
Failures are not related
Motivation
The added test is a regression test which caused a incident on PHP. When ASM Standalone was implemented, it was required to send the header
Datadog-Client-Computed-Stats
asyes
when it was a ASM Standalone request. However the way it was implemented in PHP was to add the headerDatadog-Client-Computed-Stats
always. Then the value of the header wasyes
when it was a ASM Standalone request andno
when not. This was generating the agent to never compute stats as it was interpreting the valueno
as if it wasyes
.Changes
Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present