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 NewTracingTransport(roundTripper http.RoundTripper, continueOnly bool, ...) *tracingTransport
- func StartSpan(ctx context.Context, operation string, description string, ...) (*sentry.Span, context.Context)
- type TracingInterceptor
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 ¶
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.
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
Click to show internal directories.
Click to hide internal directories.