Documentation ¶
Index ¶
- func BuildAttribute(args ...any) []attribute.KeyValue
- func BuildBaggage(args ...any) baggage.Baggage
- func ExtractTextMapCarrier(spanCtx context.Context) propagation.MapCarrier
- func ExtractTextMapCarrierBytes(spanCtx context.Context) []byte
- func GetKafkaTracingHeadersFromSpanCtx(spanCtx context.Context) []kafka.Header
- func InjectTextHeaderCarrier(spanCtx context.Context) (propagation.HeaderCarrier, error)
- func InjectTextMapCarrier(spanCtx context.Context) (propagation.MapCarrier, error)
- func MetricCount(ctx context.Context, meter metric.Meter, data ...any)
- func MetricLatency(ctx context.Context, span trace.Span, meter metric.Meter, data ...any)
- func MetricLineCount(ctx context.Context, meter metric.Meter, data ...any)
- func NewTracer(baseConfig *common_utils.BaseConfig) func()
- func SetHttpAttributes(span trace.Span, r *http.Request)
- func StartAndTrace(ctx context.Context, spanName string) (context.Context, trace.Span)
- func StartAndTraceHttp(r *http.Request, spanName string) (context.Context, trace.Span)
- func StartAndTracePubsub(ctx context.Context, spanName string, data *pubsub.Message) (context.Context, trace.Span)
- func StartAndTraceWithData(ctx context.Context, spanName string, data ...any) (context.Context, trace.Span)
- func StartKafkaConsumerTracerSpan(ctx context.Context, headers propagation.MapCarrier, spanName string) (context.Context, trace.Span)
- func StartSpan(ctx context.Context) (context.Context, trace.Span)
- func TextMapCarrierFromKafkaMessageHeaders(headers []kafka.Header) propagation.MapCarrier
- func TextMapCarrierToKafkaMessageHeaders(textMap propagation.MapCarrier) []kafka.Header
- func TraceErr(ctx context.Context, err error)
- func TraceWithErr(ctx context.Context, err error) error
- type IPgxTracer
- type PgxTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAttribute ¶ added in v1.0.46
func BuildBaggage ¶ added in v1.0.40
func ExtractTextMapCarrier ¶
func ExtractTextMapCarrier(spanCtx context.Context) propagation.MapCarrier
func GetKafkaTracingHeadersFromSpanCtx ¶ added in v1.1.16
func InjectTextHeaderCarrier ¶ added in v1.1.18
func InjectTextHeaderCarrier(spanCtx context.Context) (propagation.HeaderCarrier, error)
func InjectTextMapCarrier ¶
func InjectTextMapCarrier(spanCtx context.Context) (propagation.MapCarrier, error)
func MetricCount ¶ added in v1.0.38
func MetricLatency ¶ added in v1.0.38
func MetricLineCount ¶ added in v1.0.38
func NewTracer ¶
func NewTracer(baseConfig *common_utils.BaseConfig) func()
func StartAndTrace ¶ added in v1.0.39
func StartAndTraceHttp ¶ added in v1.0.40
func StartAndTracePubsub ¶ added in v1.0.40
func StartAndTraceWithData ¶ added in v1.0.40
func StartKafkaConsumerTracerSpan ¶ added in v1.1.33
func StartKafkaConsumerTracerSpan(ctx context.Context, headers propagation.MapCarrier, spanName string) (context.Context, trace.Span)
func TextMapCarrierFromKafkaMessageHeaders ¶ added in v1.1.33
func TextMapCarrierFromKafkaMessageHeaders(headers []kafka.Header) propagation.MapCarrier
func TextMapCarrierToKafkaMessageHeaders ¶ added in v1.1.16
func TextMapCarrierToKafkaMessageHeaders(textMap propagation.MapCarrier) []kafka.Header
Types ¶
type IPgxTracer ¶ added in v1.1.13
type PgxTracer ¶ added in v1.1.13
type PgxTracer struct { }
func (*PgxTracer) TraceQueryEnd ¶ added in v1.1.13
Click to show internal directories.
Click to hide internal directories.