mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
15 lines
941 B
Go
15 lines
941 B
Go
package tracing
|
|
|
|
// ConfigConverter is the interface for external configuration.
|
|
type ConfigConverter interface {
|
|
Convert() Config
|
|
}
|
|
|
|
// Tracing defines the available tracing configuration.
|
|
type Config struct {
|
|
Enabled bool `yaml:"enabled" env:"OCIS_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"pre5.0"`
|
|
Type string `yaml:"type" env:"OCIS_TRACING_TYPE" desc:"The type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger', 'otlp' and '' as of now." introductionVersion:"pre5.0"`
|
|
Endpoint string `yaml:"endpoint" env:"OCIS_TRACING_ENDPOINT" desc:"The endpoint of the tracing agent." introductionVersion:"pre5.0"`
|
|
Collector string `yaml:"collector" env:"OCIS_TRACING_COLLECTOR" desc:"The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset." introductionVersion:"pre5.0"`
|
|
}
|