Skip to main content
Module for telemetry functionality including logging, metrics, and tracing.

Enumerations

Classes

Interfaces

Variables

Functions

Enumerations

ExporterType

Enumeration for different exporter types used in telemetry configuration.

LogLevel

Enumeration for log levels used in logging configuration.

MetricType

Enumeration for metric types used in metric configuration.

Classes

Span

Class representing a telemetry span for tracing operations.

Interfaces

LoggerConfigInterface

Interface for logger configuration options.

MetricConfigInterface

Interface for metric configuration options.

TelemetryConfigInterface

Interface for overall telemetry configuration.

TracerConfigInterface

Interface for tracer configuration options.

Variables

logger

Global logger instance for logging operations.

metric

Global metric instance for recording metrics.

Functions

configureMetric

configureMetric(config: MetricConfigInterface): void
Configures the metric system with the provided configuration.

generateExecutionId

generateExecutionId(): string
Generates a unique execution ID for tracking operations.

getInstance

getInstance(): TelemetryInstance
Gets the singleton telemetry instance.

init

init(config: TelemetryConfigInterface): void
Initializes the telemetry system with the provided configuration.

shutdown

shutdown(): Promise<void>
Shuts down the telemetry system gracefully.

startSpan

startSpan(name: string): Span
Starts a new telemetry span with the given name.

startSpanWithAttributes

startSpanWithAttributes(name: string, attributes: Record<string, any>): Span
Starts a new telemetry span with the given name and attributes.

startSpanWithParent

startSpanWithParent(name: string, parent: Span): Span
Starts a new telemetry span with the given name and parent span.