@grow-codes/opentelemetry-collector - v0.1.1
    Preparing search index...

    Class OtelCollectorClient

    Client for an OpenTelemetry Collector.

    Index

    The immutable configuration.

    • Flushes and shuts down every handle, log client and exporter this client created, then releases connections. Idempotent.

      Returns Promise<void>

    • Unauthenticated health: GET {healthUrl} (port 13133), falling back to zpages when the health endpoint is unreachable. Never throws for an unhealthy or unreachable collector.

      Parameters

      Returns Promise<HealthStatus>

    • Authenticated round trip: an empty OTLP trace export (creates no telemetry) with the configured headers — POST {tracesUrl} with {} (HTTP) or TraceService/Export with an empty message to endpointFor("traces") (gRPC). Returns the latency in ms. AuthenticationError on 401 / gRPC UNAUTHENTICATED, PermissionDeniedError on 403, NotFoundError for a wrong path.

      Parameters

      Returns Promise<number>

    • Collector version from zpages /debug/servicez (works on stock stacks), else target_info at telemetryUrl; UnsupportedError when neither is reachable.

      Parameters

      Returns Promise<string>