Documentation ¶
Index ¶
- func AddOpenTelemetryToClient(httpClient *http.Client, meterProvider meter.MeterProvider, ...) *http.Client
- func AsyncRouteTagMiddleware(next http.Handler) http.Handler
- func ExtractContext(ctx context.Context, headers map[string]any) context.Context
- func InjectToAmqp(ctx context.Context, payload amqp.Publishing) amqp.Publishing
- func SetRouteTag(ctx context.Context, route string)
- type Config
- type FinishSpan
- type OtlpLogger
- type Service
- type SimpleHeaderCarrier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOpenTelemetryToClient ¶
func AddOpenTelemetryToClient(httpClient *http.Client, meterProvider meter.MeterProvider, tracerProvider tr.TracerProvider) *http.Client
func AsyncRouteTagMiddleware ¶ added in v4.71.0
func ExtractContext ¶ added in v4.69.9
func InjectToAmqp ¶ added in v4.69.9
func InjectToAmqp(ctx context.Context, payload amqp.Publishing) amqp.Publishing
func SetRouteTag ¶ added in v4.71.0
Types ¶
type FinishSpan ¶ added in v4.64.0
type FinishSpan = func(err *error, options ...tr.SpanEndOption)
type OtlpLogger ¶ added in v4.69.1
type Service ¶ added in v4.64.0
type Service struct { TraceUint64 bool // contains filtered or unexported fields }
func (Service) AddTraceToLogHandler ¶ added in v4.69.2
func (Service) MeterProvider ¶ added in v4.64.0
func (s Service) MeterProvider() meter.MeterProvider
func (Service) Middleware ¶ added in v4.64.0
func (Service) TracerProvider ¶ added in v4.64.0
func (s Service) TracerProvider() tr.TracerProvider
type SimpleHeaderCarrier ¶ added in v4.69.9
func (SimpleHeaderCarrier) Get ¶ added in v4.69.9
func (shc SimpleHeaderCarrier) Get(key string) string
func (SimpleHeaderCarrier) Keys ¶ added in v4.69.9
func (shc SimpleHeaderCarrier) Keys() []string
func (SimpleHeaderCarrier) Set ¶ added in v4.69.9
func (shc SimpleHeaderCarrier) Set(key string, value string)
Click to show internal directories.
Click to hide internal directories.