Categorygithub.com/go-micro/plugins/v4/wrapper/trace/opentelemetry
modulepackage
1.2.0
Repository: https://github.com/go-micro/plugins.git
Documentation: pkg.go.dev

# README

OpenTelemetry wrappers

OpenTelemetry wrappers propagate traces (spans) accross services.

Usage

service := micro.NewService(
    micro.Name("go.micro.srv.greeter"),
    micro.WrapClient(opentelemetry.NewClientWrapper()),
    micro.WrapHandler(open.NewHandlerWrapper()),
    micro.WrapSubscriber(opentelemetry.NewSubscriberWrapper()),
)

# Functions

NewCallWrapper accepts an opentracing Tracer and returns a Call Wrapper.
NewClientWrapper returns a client.Wrapper that adds monitoring to outgoing requests.
NewHandlerWrapper accepts an opentracing Tracer and returns a Handler Wrapper.
NewSubscriberWrapper accepts an opentracing Tracer and returns a Subscriber Wrapper.
StartSpanFromContext returns a new span with the given operation name and options.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

CallFilter used to filter client.Call, return true to skip call trace.
HandlerFilter used to filter server.Handle, return true to skip handle trace.
No description provided by the author
PublishFilter used to filter client.Publish, return true to skip publish trace.
StreamFilter used to filter client.Stream, return true to skip stream trace.
SubscriberFilter used to filter server.Subscribe, return true to skip subcribe trace.