Documentation ¶
Index ¶
- func AddEventDataToSpan(span *sentry.Span, eventData map[string]interface{})
- func DataloaderPostFetchHook(ctx context.Context, loaderName string)
- func DataloaderPreFetchHook(ctx context.Context, loaderName string) context.Context
- func FinishSpan(span *sentry.Span)
- func NewRedisHook(db int, dbName string, continueOnly bool) redis.Hook
- func StartSpan(ctx context.Context, operation string, description string, ...) (*sentry.Span, context.Context)
- type TracingInterceptor
- type TracingTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventDataToSpan ¶
func AddEventDataToSpan(span *sentry.Span, eventData map[string]interface{})
func DataloaderPostFetchHook ¶
func DataloaderPreFetchHook ¶
func FinishSpan ¶
func FinishSpan(span *sentry.Span)
func NewRedisHook ¶
Types ¶
type TracingInterceptor ¶
type TracingInterceptor struct {
// contains filtered or unexported fields
}
func NewTracingInterceptor ¶
func NewTracingInterceptor(continueOnly bool) TracingInterceptor
func (TracingInterceptor) UnaryInterceptor ¶
func (t TracingInterceptor) UnaryInterceptor(ctx context.Context, method string, req interface{}, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
type TracingTransport ¶
type TracingTransport struct { http.RoundTripper // contains filtered or unexported fields }
func NewTracingTransport ¶
func NewTracingTransport(roundTripper http.RoundTripper, continueOnly bool, spanOptions ...sentry.SpanOption) *TracingTransport
NewTracingTransport creates an http transport that will trace requests via Sentry. If continueOnly is true, traces will only be generated if they'd contribute to an existing parent trace (e.g. if a trace is not in progress, no new trace would be started). It errorsOnly is true, only requests that returned an error status code (400 and above) are reported.
Click to show internal directories.
Click to hide internal directories.