tracing

package
v0.0.0-...-bdcfdd8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	SpanTagTenant                = "tenant"
	SpanTagUserId                = "user-id"
	SpanTagComponent             = "component"
	SpanTagAggregateId           = "aggregateID"
	SpanTagEntityId              = "entity-id"
	SpanTagRedundantEventSkipped = "redundantEventSkipped"
)

Variables

This section is empty.

Functions

func GetTextMapCarrierFromEvent

func GetTextMapCarrierFromEvent(event eventstore.Event) opentracing.TextMapCarrier

func GetTextMapCarrierFromMetaData

func GetTextMapCarrierFromMetaData(ctx context.Context) opentracing.TextMapCarrier

func InjectSpanContextIntoGrpcMetadata

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

func LogObjectAsJson

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

func SetCommandHandlerSpanTags

func SetCommandHandlerSpanTags(ctx context.Context, span opentracing.Span, tenant, userId string)

func SetNeo4jRepositorySpanTags

func SetNeo4jRepositorySpanTags(ctx context.Context, span opentracing.Span, tenant string)

func SetServiceSpanTags

func SetServiceSpanTags(ctx context.Context, span opentracing.Span, tenant, loggedInUserId string)

func StartGrpcServerTracerSpan

func StartGrpcServerTracerSpan(ctx context.Context, operationName string) (context.Context, opentracing.Span)

func StartProjectionTracerSpan

func StartProjectionTracerSpan(ctx context.Context, operationName string, event eventstore.Event) (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