Documentation
¶
Overview ¶
Package otlpgrpc provides gRPC client connection utilities for OpenTelemetry OTLP exporters. It handles configuration and creation of properly configured gRPC connections to OTLP collectors, including automatic reconnection, keepalive parameters, and backoff strategies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExporterGRPCClient ¶
func NewExporterGRPCClient(cfgs *configs.Configs) (*grpc.ClientConn, error)
NewExporterGRPCClient creates a new gRPC client connection for OpenTelemetry OTLP exporters with configurations optimized for telemetry data export. The connection is configured with:
- Insecure credentials (for non-TLS connections)
- Idle timeout from configuration
- Keepalive parameters for maintaining long-lived connections
- Exponential backoff strategy for reconnection attempts
Parameters:
- cfgs: Application configurations containing OTLP settings
Returns:
- *grpc.ClientConn: The configured gRPC client connection
- error: Any error encountered during connection setup
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.