Package-level declarations

Types

Link copied to clipboard
abstract class BaseExporterConfig(val settings: ExporterCommonSettings)

Base configuration class for OpenTelemetry tracing exporters.

Link copied to clipboard
class ConsoleExporterConfig(val format: OutputFormat = OutputFormat.PLAIN_TEXT, settings: ExporterCommonSettings = ExporterCommonSettings()) : BaseExporterConfig

Configuration for exporting OpenTelemetry traces to the console only.

Link copied to clipboard
data class ExporterCommonSettings(val traceToConsole: Boolean = false, val flushIntervalMs: Long = DEFAULT_FLUSH_INTERVAL_MS, val flushThreshold: Int = DEFAULT_FLUSH_THRESHOLD, val flushOnShutdown: Boolean = true, val maxNumberOfSpanAttributes: Int? = null, val maxSpanAttributeValueLength: Int? = null)

Common settings for tracing exporters.

Link copied to clipboard
class FileExporterConfig(val filepath: String, val append: Boolean, val format: OutputFormat = OutputFormat.PLAIN_TEXT, settings: ExporterCommonSettings = ExporterCommonSettings()) : BaseExporterConfig

Configuration for exporting OpenTelemetry traces to a file.

Link copied to clipboard
class OtlpFileSpanExporter : SpanExporter

Extracts traces into the configured file in either JSON or plain text formats.

Link copied to clipboard

The format in which to log traces in the console.