Skip to content

Conversation

thyandrecardoso
Copy link
Contributor

This proposes adding support for version v2 of the metric submission endpoint on the Datadog API reporter. https://docs.datadoghq.com/api/latest/metrics/#submit-metrics

This also makes some other opportunistic changes to the HttpClient class in hopes of making it easier to reason about its logic, and make the reporter configuration more inline with the Span reporter.

My main motivation for these changes was to understand if sending data to that newer Datadog endpoint version has any impact on the sporadic connection timeouts I was seeing while using this reporter (which was also the reason for #1359).

I added a new configuration knob to indicate if one should use the new or old JSON payload format. Not really sure if there is a better way to do this.

@thyandrecardoso
Copy link
Contributor Author

@hughsimpson any chance you could take a look at this? 🥺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant