Documentation ¶
Index ¶
- Variables
- func Handler(h http.Handler, name string, t *Telemeter) http.Handler
- type Code
- type Float64Counter
- type Float64Histogram
- type Float64UpDownCounter
- type Int64Counter
- type Int64Histogram
- type Int64UpDownCounter
- type KeyValue
- type Meter
- type MeterOption
- type MeterProvider
- type ReadOnlySpan
- type Resource
- type Span
- type SpanExporter
- type StartSpanOption
- type Telemeter
- func (t *Telemeter) MakeDefault()
- func (t *Telemeter) Meter(instrumentationName string, opts ...MeterOption) Meter
- func (t *Telemeter) Resource() *Resource
- func (t *Telemeter) Shutdown(ctx context.Context) error
- func (t *Telemeter) StartSpan(ctx context.Context, pkg, op string, opts ...StartSpanOption) (context.Context, Span)
- func (t *Telemeter) Tracer(instrumentationName string, opts ...TracerOption) Tracer
- type Tracer
- type TracerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClientRequest = httpconv.ClientRequest ClientRespone = httpconv.ClientResponse ServerRequest = httpconv.ServerRequest ClientStatus = httpconv.ClientStatus HTTPClientAttributesFromHTTPRequest = httpconv.ClientRequest HTTPServerAttributesFromHTTPRequest = httpconv.ServerRequest HTTPAttributesFromHTTPStatusCode = httpconv.ClientResponse SpanStatusFromHTTPStatusCode = httpconv.ClientStatus )
View Source
var ( KVBool = attribute.Bool KVBoolSlice = attribute.BoolSlice KVInt = attribute.Int KVIntSlice = attribute.IntSlice KVInt64 = attribute.Int64 KVInt64Slice = attribute.Int64Slice KVFloat64 = attribute.Float64 KVFloat64Slice = attribute.Float64Slice KVString = attribute.String KVStringSlice = attribute.StringSlice KVStringer = attribute.Stringer )
View Source
var ( WithAttributes = trace.WithAttributes SpanFromContext = trace.SpanFromContext WithMetricAttributes = metric.WithAttributes )
Functions ¶
Types ¶
type Float64Counter ¶
type Float64Counter = metric.Float64Counter
type Float64Histogram ¶
type Float64Histogram = metric.Float64Histogram
type Float64UpDownCounter ¶
type Float64UpDownCounter = metric.Float64UpDownCounter
type Int64Counter ¶
type Int64Counter = metric.Int64Counter
type Int64Histogram ¶
type Int64Histogram = metric.Int64Histogram
type Int64UpDownCounter ¶
type Int64UpDownCounter = metric.Int64UpDownCounter
type MeterOption ¶
type MeterOption = metric.MeterOption
type MeterProvider ¶
type MeterProvider = metric.MeterProvider
type ReadOnlySpan ¶
type ReadOnlySpan = sdkTrace.ReadOnlySpan
type Resource ¶
func NewResource ¶
type SpanExporter ¶
type SpanExporter = sdkTrace.SpanExporter
type StartSpanOption ¶
type StartSpanOption = trace.SpanStartOption
type Telemeter ¶
type Telemeter struct { embedded.MeterProvider sdkTrace.TracerProvider // contains filtered or unexported fields }
func NewTelemeter ¶
func NewTelemeter(serviceName, version, instanceID string, spanExporter SpanExporter, meterProvider MeterProvider, spanSample float64) *Telemeter
func NewTelemeterFromResource ¶
func NewTelemeterFromResource(res *Resource, spanExporter SpanExporter, meterProvider MeterProvider, spanSample float64) *Telemeter
func (*Telemeter) MakeDefault ¶
func (t *Telemeter) MakeDefault()
func (*Telemeter) Meter ¶
func (t *Telemeter) Meter(instrumentationName string, opts ...MeterOption) Meter
type TracerOption ¶
type TracerOption = trace.TracerOption
Click to show internal directories.
Click to hide internal directories.