Documentation ¶
Index ¶
- func CreateLogger(skipSettingGRPCLogger bool) (*zap.Logger, error)
- func GetTLSCredentialsForGRPCExporter(caFile string, cAuth ClientAuth, insecureSkipVerify bool) (credentials.TransportCredentials, error)
- func GetTLSCredentialsForHTTPExporter(caFile string, cAuth ClientAuth, insecureSkipVerify bool) (*tls.Config, error)
- func ValidateSpanID(spanID string) error
- func ValidateTraceID(traceID string) 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, insecureSkipVerify bool, ) (credentials.TransportCredentials, error)
func GetTLSCredentialsForHTTPExporter ¶ added in v0.93.0
func ValidateSpanID ¶ added in v0.102.0
func ValidateTraceID ¶ added in v0.102.0
Types ¶
type ClientAuth ¶ added in v0.93.0
type Config ¶
type Config struct { WorkerCount int Rate float64 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) GetHeaders ¶ added in v0.107.0
func (*Config) GetTelemetryAttributes ¶ added in v0.87.0
Click to show internal directories.
Click to hide internal directories.