Creates a new Agent365 span exporter.
Optionaloptions: Agent365ExporterOptions
Optional exporter configuration (token resolution, endpoint overrides, batching, and payload limits). When omitted, defaults are applied.
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.
The spans to export.
Callback invoked with the export result.
Flushes any pending spans. This is a no-op because spans are exported immediately on each export call rather than being buffered.
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).
Shuts down the exporter. After this resolves, subsequent export calls fail immediately. Any in-flight exports are not awaited.
Agent365 span exporter.
Implements
SpanExporterfrom@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.