@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>

    • Flushes any pending spans. This is a no-op because spans are exported immediately on each export call rather than being buffered.

      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. Any in-flight exports are not awaited.

      Returns Promise<void>