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
Functions
Link copied to clipboard
Configures the given SdkTracerProviderBuilder with the appropriate span processors for this exporter configuration.
Link copied to clipboard
Creates a SpanExporter instance based on the current exporter configuration.
Link copied to clipboard
Constructs a SpanLimits instance using the resolved configuration for maximum attributes per span and maximum attribute value length.