@grow-codes/openobserve - v0.1.2
    Preparing search index...

    Class OpenObserveClient

    Client for OpenObserve.

    Index

    Organizations, service accounts and passcode.

    The immutable configuration.

    Logs ingestion and search.

    Stream management.

    Trace queries on the config's tracesStream.

    • Flushes and closes every log client made by logClient, then releases connections. Idempotent.

      Returns Promise<void>

    • The LogExporter used by logClient: json (_json ingestion, default) or otlp (OTLP/JSON to /v1/logs) on a stream (default: the config's stream).

      Parameters

      • stream: string = ...
      • protocol: "json" | "otlp" = "json"

      Returns LogExporter

    • Authenticated round trip: GET /api/{org}/config. Returns the latency in milliseconds; AuthenticationError on bad or missing credentials.

      Parameters

      Returns Promise<number>

    • Server version from the authenticated GET /api/{org}/config (e.g. v1.1.2).

      Parameters

      Returns Promise<string>