signalfx / signalfx-go

Go client library and instrumentation bindings for SignalFx
https://www.signalfx.com
Apache License 2.0
14 stars 51 forks source link

Check response code for errors #218

Closed sriniketh923 closed 4 months ago

sriniketh923 commented 4 months ago

Check response code before unmarshaling response.Body. Sometimes the response code is 400 and the unmarshall errors out. This ensures that the errors are handled properly.