Skip to content

v1.0.2

Compare
Choose a tag to compare
@rokob rokob released this 22 Oct 19:18
· 121 commits to master since this release
d450a93
  • Only report the first Content-Type header attached to a request in the item sent to Rollbar if there are more than one. The HTTP spec specifies that Content-Type can only appear once as a header. However, net/http has type Header map[string][]string which means that it is possible to have more than one value for this header. We saw one in the wild with more than one value set (albeit the same value repeated). (#47)
  • Add the ability to pass a context.Context to logging methods. For now this only is used to possibly pass a Person to the particular call by using NewPersonContext. (#46)