@microsoft/opentelemetry
    Preparing search index...

    Class Agent365Exporter

    Agent365 span exporter.

    Implements SpanExporter from @opentelemetry/sdk-trace-base. Partitions spans by (tenantId, agentId), builds OTLP-like JSON payloads, and POSTs them to the Agent365 observability service with Bearer auth.

    Implements

    • SpanExporter
    Index
    • Exports a batch of spans to the Agent365 observability service.

      Partitions the spans by (tenantId, agentId), builds OTLP-like JSON payloads, and POSTs them with bearer authentication. Invokes resultCallback with ExportResultCode.SUCCESS when all groups export successfully, or ExportResultCode.FAILED when the exporter is shut down or any group fails.

      Parameters

      • spans: ReadableSpan[]

        The spans to export.

      • resultCallback: (result: ExportResult) => void

        Callback invoked with the export result.

      Returns Promise<void>

    • Waits for accepted exports and drains pending durable records when durable delivery is enabled.

      Returns Promise<void>

    • Returns the BufferConfig the host should pass to its BatchSpanProcessor. Any value the caller supplied wins; anything omitted falls back to the A365 exporter's documented defaults (not the upstream BatchSpanProcessor defaults).

      Returns BufferConfig

    • Shuts down the exporter. After this resolves, subsequent export calls fail immediately. Accepted exports settle before shutdown completes when they finish before the configured shutdown deadline; durable delivery requests are aborted at that deadline.

      Returns Promise<void>