Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a small wrapper to access a named tracer with fluent helpers
type CaptureConfig ¶
type CaptureConfig struct {
DownstreamError struct {
Enabled bool `yaml:"enabled"`
MaxBodyLength int `yaml:"max_body_length"`
} `yaml:"downstream_error"`
DownstreamRequest struct {
Enabled bool `yaml:"enabled"`
IncludeFields StringMap `yaml:"include_fields"`
MaxFieldLength int `yaml:"max_field_length"`
BodyEnabled bool `yaml:"body_enabled"`
BodyMaxLength int `yaml:"body_max_length"`
} `yaml:"downstream_request"`
DownstreamResponse struct {
Enabled bool `yaml:"enabled"`
MaxBodyLength int `yaml:"max_body_length"`
} `yaml:"downstream_response"`
}
CaptureConfig controls extra trace capture behavior
type Config ¶
type Config struct {
Enabled bool `yaml:"enabled"`
ServiceName string `yaml:"service_name"`
Endpoint string `yaml:"endpoint"` // e.g. localhost:4317 or http://localhost:4318
Protocol string `yaml:"protocol"` // grpc or http
Insecure bool `yaml:"insecure"` // allow insecure connection
SamplerRate float64 `yaml:"sampler_rate"` // 0.0~1.0
Environment string `yaml:"environment"` // env tag: dev/staging/prod
Headers map[string]string `yaml:"headers"`
Capture CaptureConfig `yaml:"capture"`
}
Config represents OpenTelemetry/Jaeger tracing configuration
Click to show internal directories.
Click to hide internal directories.