tracing

package
v0.0.0-...-f2fc450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 DataloaderPostFetchHook(ctx context.Context, loaderName string)

func DataloaderPreFetchHook

func DataloaderPreFetchHook(ctx context.Context, loaderName string) context.Context

func FinishSpan

func FinishSpan(span *sentry.Span)

func NewRedisHook

func NewRedisHook(db int, dbName string, continueOnly bool) redis.Hook

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.

func StartSpan

func StartSpan(ctx context.Context, operation string, description string, options ...sentry.SpanOption) (*sentry.Span, context.Context)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL