tracing

package
v0.0.0-...-c85e528 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpanTagEntityId = tracing.SpanTagEntityId
)

Variables

This section is empty.

Functions

func EnrichCtxWithSpanCtxForGraphQL

func EnrichCtxWithSpanCtxForGraphQL(ctx context.Context, operationContext *graphql.OperationContext) context.Context

func ExtractSpanCtx

func ExtractSpanCtx(ctx context.Context) opentracing.SpanContext

func LogObjectAsJson

func LogObjectAsJson(span opentracing.Span, name string, object any)

func SetDefaultResolverSpanTags

func SetDefaultResolverSpanTags(ctx context.Context, span opentracing.Span)

func StartGraphQLTracerSpan

func StartGraphQLTracerSpan(ctx context.Context, operationName string, operationContext *graphql.OperationContext) (context.Context, opentracing.Span)

func StartHttpServerTracerSpanWithHeader

func StartHttpServerTracerSpanWithHeader(ctx context.Context, operationName string, headers http.Header) (context.Context, opentracing.Span)

func TraceErr

func TraceErr(span opentracing.Span, err error, fields ...log.Field)

Types

This section is empty.

Jump to

Keyboard shortcuts

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