Commit Graph

6 Commits

Author SHA1 Message Date
srinivashegde86 e5c43dce06 Separate common monitoring methods into monitoring package (#302)
* Separate common monitoring methods into monitoring package

* Add doc.go to monitoring

* Update doc.go to add information about the public methods

* Fix build tests
2019-03-02 18:20:38 -08:00
srinivashegde86 cccc0604d0 Use FormatLogger instead of func parameter (#297) 2019-02-27 15:47:49 -08:00
dushyanthsc 41761b2c81 Adding default zipkin tracing support to SpoofClient (#273)
Existing support for Zipkin tracing pushes the
responsibility of logging zipkin traces to
individual tests. This change moves the responsibility
to SpoofClient, so that all tests get it by default.
Traces are logged only for requests that have
encountered Server errors i.e if the
http.Response.StatusCode between 500 to 599.

For SpoofingClient.Poll calls we only log trace of the
final SpoofingClient.Do made.
2019-02-25 10:40:48 -08:00
Victor Agababov a330baa9b0 Grep fix formatting issues (#233)
* Some fixes to the spoof.go and exporter.go

While reviewing some other CL, I saw some avenues for improving
spoof.go, to log the URL that's being fetched, which would help in test
debugging and to use switch construct, rather than nested if's.

While testing the change, I noticed some shifty loggin from the
exporter, so I fixed that as well while I was there.

* Continuation of the previous cleanups.

* Fix the issues with formatting by executing a grep

* and fix compilation error

* lowercase error

* fix the newly changed unit test
2019-01-18 14:33:32 -08:00
mattmoor-sockpuppet d99eb0732f Run gofmt (#171)
Produced via: `gofmt -s -w $(find -name '*.go' | grep -v vendor)`
2018-11-26 07:18:22 -08:00
dushyanthsc 083969f9a0 Adding Zipkin tracing support for SpoofingClient (#119) 2018-10-31 09:06:37 -07:00