Documentation ¶
Overview ¶
Package instr contains common instrumentation tooling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SamplingRatio float64 // Parent-based sampling ratio (fraction of sniffed hashes traced). JaegerEndpoint string // Send spans to Jaeger HTTP endpoint. }
Config specifies the configuration for the instrumentation.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default configuration for the instrumentation.
type Instrumentation ¶
Instrumentation provides a canonical representation of instrumentation.
func New ¶
func New() *Instrumentation
New generates a representation of instrumentation containing the globally registered tracer and meter.
Click to show internal directories.
Click to hide internal directories.