Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Console bool `yaml:"console" mapstructure:"console"`
PProfPort int `yaml:"pprofPort" mapstructure:"pprofPort"`
Tracing TracingConfig `yaml:"tracing" mapstructure:"tracing"`
}
type TracingConfig ¶ added in v2.2.4
type TracingConfig struct {
// Protocol specifies the communication protocol for the tracing server.
// Supported values: "http", "https" and "grpc".
// This determines how tracing logs are transmitted to the server.
Protocol string `yaml:"protocol" mapstructure:"protocol"`
// Endpoint is the endpoint to report tracing log, example: "localhost:4317".
Endpoint string `yaml:"endpoint" mapstructure:"endpoint"`
// Path is the path to the tracing server, example: "/v1/traces" if the protocol is "http" or "https".
Path string `yaml:"path" mapstructure:"path"`
// ServiceName is the name of the service for tracing.
ServiceName string `yaml:"service-name" mapstructure:"service-name"`
// Headers are additional headers to be sent with tracing requests.
Headers map[string]string `yaml:"headers" mapstructure:"headers"`
}
TracingConfig defines the configuration for OpenTelemetry tracing.
Click to show internal directories.
Click to hide internal directories.