Documentation
¶
Index ¶
- func NewCallWrapper(opts ...Option) client.CallWrapper
- func NewClientWrapper(opts ...Option) client.Wrapper
- func NewHandlerWrapper(opts ...Option) server.HandlerWrapper
- func NewSubscriberWrapper(opts ...Option) server.SubscriberWrapper
- func StartSpanFromContext(ctx context.Context, tp trace.TracerProvider, name string, ...) (context.Context, trace.Span)
- type CallFilter
- type HandlerFilter
- type Option
- func WithCallFilter(filter CallFilter) Option
- func WithHandleFilter(filter HandlerFilter) Option
- func WithPublishFilter(filter PublishFilter) Option
- func WithStreamFilter(filter StreamFilter) Option
- func WithSubscribeFilter(filter SubscriberFilter) Option
- func WithTraceProvider(tp trace.TracerProvider) Option
- type Options
- type PublishFilter
- type StreamFilter
- type SubscriberFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallWrapper ¶
func NewCallWrapper(opts ...Option) client.CallWrapper
NewCallWrapper accepts an opentracing Tracer and returns a Call Wrapper.
func NewClientWrapper ¶
NewClientWrapper returns a client.Wrapper that adds monitoring to outgoing requests.
func NewHandlerWrapper ¶
func NewHandlerWrapper(opts ...Option) server.HandlerWrapper
NewHandlerWrapper accepts an opentracing Tracer and returns a Handler Wrapper.
func NewSubscriberWrapper ¶
func NewSubscriberWrapper(opts ...Option) server.SubscriberWrapper
NewSubscriberWrapper accepts an opentracing Tracer and returns a Subscriber Wrapper.
func StartSpanFromContext ¶
func StartSpanFromContext(ctx context.Context, tp trace.TracerProvider, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
StartSpanFromContext returns a new span with the given operation name and options. If a span is found in the context, it will be used as the parent of the resulting span.
Types ¶
type CallFilter ¶ added in v1.1.1
CallFilter used to filter client.Call, return true to skip call trace.
type HandlerFilter ¶ added in v1.1.1
HandlerFilter used to filter server.Handle, return true to skip handle trace.
type Option ¶ added in v1.1.1
type Option func(*Options)
func WithCallFilter ¶ added in v1.1.1
func WithCallFilter(filter CallFilter) Option
func WithHandleFilter ¶ added in v1.1.1
func WithHandleFilter(filter HandlerFilter) Option
func WithPublishFilter ¶ added in v1.1.1
func WithPublishFilter(filter PublishFilter) Option
func WithStreamFilter ¶ added in v1.1.1
func WithStreamFilter(filter StreamFilter) Option
func WithSubscribeFilter ¶ added in v1.1.1
func WithSubscribeFilter(filter SubscriberFilter) Option
func WithTraceProvider ¶ added in v1.1.1
func WithTraceProvider(tp trace.TracerProvider) Option
type Options ¶ added in v1.1.1
type Options struct { TraceProvider trace.TracerProvider CallFilter CallFilter StreamFilter StreamFilter PublishFilter PublishFilter SubscriberFilter SubscriberFilter HandlerFilter HandlerFilter }
type PublishFilter ¶ added in v1.1.1
PublishFilter used to filter client.Publish, return true to skip publish trace.
type StreamFilter ¶ added in v1.1.1
StreamFilter used to filter client.Stream, return true to skip stream trace.