otlpgrpc

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: MIT Imports: 11 Imported by: 3

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL