ConsoleExporterConfig

class ConsoleExporterConfig(val format: OutputFormat = OutputFormat.PLAIN_TEXT, settings: ExporterCommonSettings = ExporterCommonSettings()) : BaseExporterConfig(source)

Configuration for exporting OpenTelemetry traces to the console only.

Parameters

format

The format in which to log traces to the console.

settings

User-provided common settings controlling batching, console logging, shutdown behavior, and span attribute limits.

See also

Constructors

Link copied to clipboard
constructor(format: OutputFormat = OutputFormat.PLAIN_TEXT, settings: ExporterCommonSettings = ExporterCommonSettings())

Properties

Link copied to clipboard
Link copied to clipboard

User-provided common settings controlling batching, console logging, shutdown behavior, and span attribute limits.

Functions

Link copied to clipboard
open fun configureSpanProcessors(sdkTracerBuilder: SdkTracerProviderBuilder)

Configures the given SdkTracerProviderBuilder with the appropriate span processors for this exporter configuration.

Link copied to clipboard
open override fun createSpanExporter(): SpanExporter

Creates a SpanExporter instance based on the current exporter configuration.

Link copied to clipboard
open fun createSpanLimits(): SpanLimits

Constructs a SpanLimits instance using the resolved configuration for maximum attributes per span and maximum attribute value length.