Documentation ¶
Index ¶
- func CreateLogger(skipSettingGRPCLogger bool) (*zap.Logger, error)
- func GetTLSCredentialsForGRPCExporter(caFile string, cAuth ClientAuth) (credentials.TransportCredentials, error)
- func GetTLSCredentialsForHTTPExporter(caFile string, cAuth ClientAuth) (*tls.Config, error)
- type ClientAuth
- type Config
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
CreateLogger creates a logger for use by telemetrygen
func GetTLSCredentialsForGRPCExporter ¶ added in v0.93.0
func GetTLSCredentialsForGRPCExporter(caFile string, cAuth ClientAuth) (credentials.TransportCredentials, error)
func GetTLSCredentialsForHTTPExporter ¶ added in v0.93.0
func GetTLSCredentialsForHTTPExporter(caFile string, cAuth ClientAuth) (*tls.Config, error)
Types ¶
type ClientAuth ¶ added in v0.93.0
type Config ¶
type Config struct { WorkerCount int Rate int64 TotalDuration time.Duration ReportingInterval time.Duration SkipSettingGRPCLogger bool // OTLP config CustomEndpoint string Insecure bool InsecureSkipVerify bool UseHTTP bool HTTPPath string Headers KeyValue ResourceAttributes KeyValue TelemetryAttributes KeyValue // OTLP TLS configuration CaFile string // OTLP mTLS configuration ClientAuth ClientAuth }
func (*Config) CommonFlags ¶
CommonFlags registers common config flags.
func (*Config) Endpoint ¶
Endpoint returns the appropriate endpoint URL based on the selected communication mode (gRPC or HTTP) or custom endpoint provided in the configuration.
func (*Config) GetAttributes ¶
func (*Config) GetTelemetryAttributes ¶ added in v0.87.0
Click to show internal directories.
Click to hide internal directories.