SpectraExporterOptions Class

Configuration for exporting traces to a Spectra Collector sidecar via OTLP.

Spectra Collector is deployed as a Kubernetes sidecar that accepts standard OTLP telemetry on localhost. Defaults are tuned for this deployment topology — most consumers should not need to override them.

Note: Batch processor fields (max_queue_size, scheduled_delay_ms, etc.) are duplicated from Agent365ExporterOptions intentionally — these two options classes have no shared base class per design decision C4.

Constructor

SpectraExporterOptions(endpoint: str | None = None, protocol: Literal['grpc', 'http'] = 'grpc', insecure: bool = True, max_queue_size: int = 2048, scheduled_delay_ms: int = 5000, exporter_timeout_ms: int = 30000, max_export_batch_size: int = 512)

Parameters

Name Description
endpoint

Spectra sidecar OTLP endpoint. Defaults to http://localhost:4317 for gRPC or http://localhost:4318 for HTTP.

Default value: None
protocol

OTLP protocol — "grpc" or "http". Default: grpc.

Default value: grpc
insecure

Use insecure (no TLS) connection. Default: True (localhost sidecar).

Default value: True
max_queue_size

Batch processor queue size. Default: 2048.

Default value: 2048
scheduled_delay_ms

Export interval in milliseconds. Default: 5000.

Default value: 5000
exporter_timeout_ms

Export timeout in milliseconds. Default: 30000.

Default value: 30000
max_export_batch_size

Max spans per export batch. Default: 512.

Default value: 512