cyberdelia / metrology

A library to easily measure what's going on in your python.
https://metrology.readthedocs.org
MIT License
309 stars 25 forks source link

Sets the content-type to JSON when writing to Librato. #8

Closed jacobian closed 12 years ago

jacobian commented 12 years ago

Without this, Librato assumes the content-type is form data, can't parse the POST, and thus doesn't record the metrics.

cyberdelia commented 12 years ago

Thank you! Don't hesitate if you have other changes to make on the librato reporter, I've mostly builded it blindly from the docs, so any changes from the trenches is welcome.

jacobian commented 12 years ago

Cool, thank you! I'll keep an eye on how it's working and report back if anything's wonky, but so far so good.