Raxol.Terminal.Emulator.Telemetry (Raxol Terminal v2.6.0)

Copy Markdown View Source

Telemetry instrumentation for the terminal emulator.

Provides comprehensive error tracking and performance monitoring for terminal emulation operations.

All events include trace_id and span_id for request correlation. Use Raxol.Core.Telemetry.Context to manage trace context.

Summary

Functions

Attaches default telemetry handlers for logging.

Lists all emulator telemetry events.

Records checkpoint creation with trace context.

Records checkpoint restoration with trace context.

Records an error event with trace context.

Records a health check with trace context.

Records a recovery attempt with trace context.

Records a failed recovery with trace context.

Records a successful recovery with trace context.

Executes a function with telemetry instrumentation.

Functions

attach_default_handlers()

Attaches default telemetry handlers for logging.

events()

Lists all emulator telemetry events.

record_checkpoint_created(metadata \\ %{})

Records checkpoint creation with trace context.

record_checkpoint_restored(metadata \\ %{})

Records checkpoint restoration with trace context.

record_error(error_type, reason, metadata \\ %{})

Records an error event with trace context.

record_health_check(status, metadata \\ %{})

Records a health check with trace context.

record_recovery_attempt(metadata \\ %{})

Records a recovery attempt with trace context.

record_recovery_failure(reason, metadata \\ %{})

Records a failed recovery with trace context.

record_recovery_success(metadata \\ %{})

Records a successful recovery with trace context.

span(event_prefix, metadata, fun)

Executes a function with telemetry instrumentation.

Automatically includes trace_id and span_id for request correlation.