Documentation ¶
Index ¶
Constants ¶
View Source
const (
TarsRpcRetKey = attribute.Key("tars.rpc.ret")
)
Variables ¶
This section is empty.
Functions ¶
func SemVersion ¶
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
Types ¶
type Opentelemetry ¶
type Opentelemetry struct { Propagators propagation.TextMapPropagator TracerProvider trace.TracerProvider MeterProvider metric.MeterProvider // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) *Opentelemetry
func (*Opentelemetry) BuildClientFilter ¶
func (o *Opentelemetry) BuildClientFilter() tars.ClientFilterMiddleware
func (*Opentelemetry) BuildHttpHandler ¶
func (o *Opentelemetry) BuildHttpHandler() func(next http.Handler) http.Handler
func (*Opentelemetry) BuildServerFilter ¶
func (o *Opentelemetry) BuildServerFilter() tars.ServerFilterMiddleware
type Option ¶
type Option func(*Opentelemetry)
func WithMeterProvider ¶
func WithMeterProvider(mp metric.MeterProvider) Option
func WithPropagators ¶
func WithPropagators(p propagation.TextMapPropagator) Option
func WithTracerProvider ¶
func WithTracerProvider(tp trace.TracerProvider) Option
Click to show internal directories.
Click to hide internal directories.