Closed syslxg closed 8 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/129102399
The labels on this github issue will be updated when the story is started.
@syslxg Thanks for bringing this up. We'll try and prioritize it as soon as possible. If you'd like to contribute we encourage you to create a PR for this issue as well.
we are writing an datadog proxy using sinatra. The proxy receives metrics from datadog-firehose-nozzle , proccesses them, then send to datadog.com. Because the datadogclient package in this repo does not send "Content-type: application/json" header while emitting metrics, our proxy fails because Rack tries to parse the huge json in body as params. We add
req.Header.Set("Content-type", "application/json")
at https://github.com/cloudfoundry-incubator/datadog-firehose-nozzle/blob/master/datadogclient/datadog_client.go#L117, and that solved our issue.