Documentation ¶
Index ¶
Constants ¶
View Source
const ( SENTRY_TRACE_HEADER = "sentry-trace" // https://develop.sentry.dev/sdk/performance/#header-sentry-trace SENTRY_BAGGAGE_HEADER = "baggage" // https://develop.sentry.dev/sdk/performance/dynamic-sampling-context/#baggage )
Variables ¶
This section is empty.
Functions ¶
func AttachSpan ¶
func AttachSpan(opts ...Options) gin.HandlerFunc
func FromHTTPStatusToSentryStatus ¶
func FromHTTPStatusToSentryStatus(code int) sentry.SpanStatus
Convert HTTP Status to Sentry status, rewrite from Sentry Python SDK's tracing.py
func StartSpanFromGinContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.