Język

Agent365ExporterOptions Class

Definition

Configuration for Agent365Exporter. A configured app-only token resolver is required for core operation.

public sealed class Agent365ExporterOptions
type Agent365ExporterOptions = class
Public NotInheritable Class Agent365ExporterOptions
Inheritance
Agent365ExporterOptions

Constructors

Name Description
Agent365ExporterOptions()

Initializes a new instance of the Agent365ExporterOptions class with default settings.

Fields

Name Description
DefaultEndpointHost

The default endpoint host for Agent365 observability.

Properties

Name Description
ClusterCategory

Cluster region argument. Defaults to production.

ContextualTokenResolver

Async delegate used to resolve the app-only OBS auth token with rich context, which may include the agentic user ID associated with the export batch context for cache selection or diagnostics. Takes precedence over TokenResolver when set. The exporter does not guarantee separate batching or resolver invocation per agentic user ID. This resolver must not perform delegated, OBO, or user_fic authentication for OBS export.

DomainResolver

Delegate used to resolve the endpoint host or URL for a given tenant id. Defaults to returning DefaultEndpointHost.

ExporterTimeoutMilliseconds

Timeout in milliseconds for the export operation. Default is 30000 (30 seconds).

MaxExportBatchSize

Maximum batch size for export operations. Default is 512.

MaxPayloadBytes

Upper bound on HTTP request body size in bytes used by per-request payload chunking. 100 KB headroom under the 1 MB server limit accounts for estimator error and JSON/envelope overhead (for example, resource attributes and scope wrappers). Default is 900,000 bytes.

MaxQueueSize

Maximum queue size for the batch processor. Default is 2048.

ScheduledDelayMilliseconds

Delay in milliseconds between export batches. Default is 5000 (5 seconds).

TokenResolver

Async delegate used to resolve the app-only OBS auth token. Either this or ContextualTokenResolver must be set. When both are set, ContextualTokenResolver takes precedence. The exporter invokes this resolver once per tenant/agent identity group in each export batch, so a batch that contains several identities invokes it several times. It never falls back to a delegated token.

UseS2SEndpoint
Obsolete.

OBS export always uses the service-to-service (S2S) OTLP endpoint path: /observabilityService/tenants/{tenantId}/otlp/agents/{agentId}/traces. This compatibility switch is ignored even when set to false.

Applies to