tracing

package
v0.0.0-...-bcf736d Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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 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