@grow-codes/zipkin - v0.1.1
    Preparing search index...

    Class ZipkinReporter

    Reports spans to Zipkin without OpenTelemetry: POST /api/v2/spans with a JSON array of v2 spans (202 Accepted). Spans are normalized locally first (normalizeZipkinSpan), so an invalid span throws ValidationError before anything is sent. Ingest is idempotent (Zipkin merges spans by id), so 5xx, 429 and network errors are retried; a 400 or 413 is permanent.

    Get one from ZipkinClient.reporter (shares the client's connections) or construct it from a config (owns its connections; call close).

    Index
    compression: "none" | "gzip"

    Request body compression.

    endpoint: string

    Ingest URL used by report.

    maxBatchSize: number

    Spans per POST.

    • Releases connections when this reporter owns them (no-op for client.reporter). Idempotent.

      Returns Promise<void>

    • Sends spans: an empty list sends nothing; more than maxBatchSize spans are sent in several POSTs, in order. Spans are queryable once the call resolves (immediately with in-memory storage; persistent backends may lag — use query.waitForTrace).

      Parameters

      Returns Promise<void>