Skip to content

Connectum API Reference / @connectum/otel / getBatchSpanProcessorOptions

Function: getBatchSpanProcessorOptions()

getBatchSpanProcessorOptions(): BatchSpanProcessorOptions

Defined in: packages/otel/src/config.ts:100

Gets batch span processor options from environment variables

Environment variables:

  • OTEL_BSP_MAX_EXPORT_BATCH_SIZE: Max number of spans to export in a single batch (default: 100)
  • OTEL_BSP_MAX_QUEUE_SIZE: Max queue size - if reached, new spans are dropped (default: 1000)
  • OTEL_BSP_SCHEDULE_DELAY: Time to wait before automatically exporting spans in ms (default: 1000)
  • OTEL_BSP_EXPORT_TIMEOUT: Max time allowed for a single export operation in ms (default: 10000)

Returns

BatchSpanProcessorOptions

Batch span processor options