Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(opts ...Option) middleware.Middleware
Client returns a new client middleware for OpenTelemetry.
func Server ¶
func Server(opts ...Option) middleware.Middleware
Server returns a new server middleware for OpenTelemetry.
Types ¶
type MetadataCarrier ¶
MetadataCarrier is grpc metadata carrier
func (MetadataCarrier) Clone ¶
func (mc MetadataCarrier) Clone() MetadataCarrier
Clone copy MetadataCarrier
func (MetadataCarrier) Get ¶
func (mc MetadataCarrier) Get(key string) string
Get returns the value associated with the passed key.
func (MetadataCarrier) Keys ¶
func (mc MetadataCarrier) Keys() []string
Keys lists the keys stored in this carrier.
func (MetadataCarrier) Set ¶
func (mc MetadataCarrier) Set(key string, value string)
Set stores the key-value pair.
type Option ¶
type Option func(*options)
Option is tracing option.
func WithPropagators ¶
func WithPropagators(propagators propagation.TextMapPropagator) Option
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
Click to show internal directories.
Click to hide internal directories.