Module websocket

Module websocket 

Source
Expand description

Metrics collection for websocket operations.

This module provides the Metrics struct and related types for tracking websocket connection and message statistics such as the number of activity messages, connection attempts, and their durations. It leverages OpenTelemetry for metrics instrumentation, supporting monitoring and observability.

Structs§

Metrics
Holds counters and histograms for websocket metrics.

Enums§

ConnectionResult
Possible results for a websocket connection attempt.
MessageType
Possible types of websocket activity messages.