-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/datadogreceiver] Return json for traces if the version is > 0.3 #35705
[receiver/datadogreceiver] Return json for traces if the version is > 0.3 #35705
Conversation
Is there anything you need help with please reach here or within the CNCF slack :) |
Thanks @MovieStoreGuy. It looks like I'll need a little assistance in getting the workflow to run. Also any other assistance to get this merged . |
b276543
to
c08a3c1
Compare
This is ready for a re-run of the tests. It got a failure on the last run from something Elasticsearch related. I rebased and hope it will pass this time. I didn't see any errors related to this code change. |
c08a3c1
to
6d76385
Compare
I'm not authorized to merge this. If you're happy with it so am I. Merge at will. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@MovieStoreGuy @jpkrohling what are the next steps for this? I think it's all ready for a merge or any additional reviews that are needed. |
… 0.3 (open-telemetry#35705) #### Description Problem: * [The Datadog agent for versions > 0.3 returns Json instead of "Ok"](https://github.com/DataDog/datadog-agent/blob/86b2ae24f93941447a5bf0a2b6419caed77e76dd/pkg/trace/api/api.go#L511-L519) * [dd-trace-js is using V0.4 for sending data to Datadog and that expects to get a JSON response back](https://github.com/DataDog/dd-trace-js/blob/2d175d30d5ad7291c238819116a07f003074316b/packages/dd-trace/src/exporters/agent/writer.js#L52) * When sending traces from NodeJS with the dd-trace-js library it works, but throws a high volume of errors from the non-json response. Fix: For trace submissions with a version > 0.3 return a valid, but empty Json response. <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit test to ensure the expected responses to traces are returned. --------- Co-authored-by: Sean Marciniak <[email protected]>
… 0.3 (open-telemetry#35705) #### Description Problem: * [The Datadog agent for versions > 0.3 returns Json instead of "Ok"](https://github.com/DataDog/datadog-agent/blob/86b2ae24f93941447a5bf0a2b6419caed77e76dd/pkg/trace/api/api.go#L511-L519) * [dd-trace-js is using V0.4 for sending data to Datadog and that expects to get a JSON response back](https://github.com/DataDog/dd-trace-js/blob/2d175d30d5ad7291c238819116a07f003074316b/packages/dd-trace/src/exporters/agent/writer.js#L52) * When sending traces from NodeJS with the dd-trace-js library it works, but throws a high volume of errors from the non-json response. Fix: For trace submissions with a version > 0.3 return a valid, but empty Json response. <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit test to ensure the expected responses to traces are returned. --------- Co-authored-by: Sean Marciniak <[email protected]>
Description
Problem:
Fix: For trace submissions with a version > 0.3 return a valid, but empty Json response.
Testing
Added unit test to ensure the expected responses to traces are returned.