Foundation.Services.TelemetryService (foundation v0.1.0)
GenServer implementation for telemetry collection and metrics.
Provides structured telemetry with automatic metric collection, event emission, and performance monitoring.
Summary
Functions
Returns a specification to start this module under a supervisor.
Reset all metrics (for testing purposes).
Reset all internal state for testing purposes.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec initialize(keyword()) :: :ok | {:error, Foundation.Types.Error.t()}
@spec reset_metrics() :: :ok | {:error, Foundation.Types.Error.t()}
Reset all metrics (for testing purposes).
@spec reset_state() :: :ok | {:error, Foundation.Types.Error.t()}
Reset all internal state for testing purposes.
Clears all metrics, handlers, and resets configuration to defaults. This function should only be used in test environments.
@spec start_link(keyword()) :: GenServer.on_start()
@spec stop() :: :ok