Documentation ¶
Index ¶
- func GRPCClientTrace(opts ...Option) middleware.Middleware
- func GRPCServerTrace(opts ...Option) middleware.Middleware
- func HTTPServerTrace(opts ...Option) middleware.HTTPMiddleware
- func ParseFullMethod(fullMethod string) (string, []attribute.KeyValue)
- func PeerAttr(addr string) []attribute.KeyValue
- func SpanInfo(fullMethod, addr string) (string, []attribute.KeyValue)
- type Metadata
- type Option
- type Tracer
- type TracerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCClientTrace ¶
func GRPCClientTrace(opts ...Option) middleware.Middleware
func GRPCServerTrace ¶
func GRPCServerTrace(opts ...Option) middleware.Middleware
func HTTPServerTrace ¶
func HTTPServerTrace(opts ...Option) middleware.HTTPMiddleware
Types ¶
type Option ¶
type Option func(option *TracerOption)
func Propagator ¶
func Propagator(propagator propagation.TextMapPropagator) Option
func Provider ¶
func Provider(provider trace.TracerProvider) Option
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) Start ¶
func (t *Tracer) Start(ctx context.Context, spanName string, carrier propagation.TextMapCarrier, opts ...trace.SpanStartOption) (context.Context, trace.Span)
type TracerOption ¶
type TracerOption struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.