Documentation
¶
Index ¶
Constants ¶
const ( OTLPGRPC = "otlpgrpc" OTLPHTTP = "otlphttp" Stdout = "stdout" )
Exporter names; each is registered by the matching exporters/ subpackage's init().
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
Factory strict-decodes its own config block (raw YAML, nil when absent) and must fail on unknown keys.
type Manager ¶
type Manager interface {
model.Tracer
// no common.Readiness on purpose: a dead collector must not gate dependents
common.Liveness
common.Initializable
common.Daemon
common.Debuggable
}
type Option ¶
type Option func(*manager)
func WithEnabled ¶
WithEnabled is overridden by tracing.enabled on every Init.
func WithExporter ¶
WithExporter does not enable tracing. Init replaces it with tracing.exporter and tracing.config, so a key the config leaves out clears it.
func WithLogger ¶
func WithSampleRatio ¶
WithSampleRatio treats zero as unset; a remote parent's decision still wins.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
exporters
|
|
|
model
Package model is the tracing exporter factories' config vocabulary.
|
Package model is the tracing exporter factories' config vocabulary. |
|
otlpgrpc
Package otlpgrpc registers tracing.OTLPGRPC when blank-imported, keeping grpc out of other binaries.
|
Package otlpgrpc registers tracing.OTLPGRPC when blank-imported, keeping grpc out of other binaries. |
|
otlphttp
Package otlphttp registers tracing.OTLPHTTP when blank-imported.
|
Package otlphttp registers tracing.OTLPHTTP when blank-imported. |
|
stdout
Package stdout registers tracing.Stdout when blank-imported, for local development.
|
Package stdout registers tracing.Stdout when blank-imported, for local development. |