opentelemetry

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

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.

func Version

func Version() string

Version is the current release version of the TarsGo instrumentation.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL