Skip to content

v0.5.0

Compare
Choose a tag to compare
@rhcarvalho rhcarvalho released this 03 Feb 20:29
· 477 commits to master since this release
  • fix: Synchronize access to HTTPTransport.disabledUntil (#158)
  • docs: Update Flush documentation (#153)
  • fix: HTTPTransport.Flush panic and data race (#140)

NOTE:
This version changes the implementation of the default transport, modifying the
behavior of sentry.Flush. The previous behavior was to wait until there were
no buffered events; new concurrent events kept Flush from returning. The new
behavior is to wait until the last event prior to the call to Flush has been
sent or the timeout; new concurrent events have no effect. The new behavior is
inline with the Unified API
Guidelines
.

We have updated the documentation and examples to clarify that Flush is meant
to be called typically only once before program termination, to wait for
in-flight events to be sent to Sentry. Calling Flush after every event is not
recommended, as it introduces unnecessary latency to the surrounding function.
Please verify the usage of sentry.Flush in your code base.