telemetry

package
v0.0.0-...-e890a9a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderFromContext

func HeaderFromContext(ctx context.Context) nats.Header

func NATSHeaderToOTLP

func NATSHeaderToOTLP(header nats.Header) propagation.HeaderCarrier

func NewMeterNoopProvider

func NewMeterNoopProvider(res *resource.Resource) *metric.MeterProvider

func NewMetergRPCProvider

func NewMetergRPCProvider(ctx context.Context, res *resource.Resource) *metric.MeterProvider

func NewPropagator

func NewPropagator() propagation.TextMapPropagator

func NewResource

func NewResource(serviceName, serviceVersion string) *resource.Resource

func NewTraceNoopProvider

func NewTraceNoopProvider(res *resource.Resource) *trace.TracerProvider

func NewTracegRPCProvider

func NewTracegRPCProvider(ctx context.Context, res *resource.Resource) *trace.TracerProvider

func OTLPHeaderToNATS

func OTLPHeaderToNATS(header propagation.HeaderCarrier) nats.Header

func SetupOtelSDK

func SetupOtelSDK(ctx context.Context, res *resource.Resource, log logr.Logger) func(context.Context) error

func TracedHandler

func TracedHandler(ctx context.Context, handler func(ctx context.Context, req micro.Request)) micro.Handler

func TracedMsg

func TracedMsg(ctx context.Context, subject string, data []byte) *nats.Msg

Types

This section is empty.

Jump to

Keyboard shortcuts

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