Xirsys.Sockets.Telemetry (xturn_sockets v2.0.0)

View Source

Telemetry handlers for monitoring TURN server socket performance

This module provides comprehensive monitoring for:

  • Connection metrics
  • Data transfer rates
  • Error rates
  • Rate limiting events
  • SSL/TLS handshake performance

Summary

Functions

Attach telemetry handlers for socket monitoring

Detach all telemetry handlers

Emit a telemetry event when enabled in configuration.

Get current socket metrics

Get health status based on error rates

Reset all counters (useful for testing)

Functions

attach_handlers()

Attach telemetry handlers for socket monitoring

detach_handlers()

Detach all telemetry handlers

emit(event_name, measurements, metadata)

@spec emit(atom(), map(), map()) :: :ok

Emit a telemetry event when enabled in configuration.

get_metrics()

Get current socket metrics

health_status()

Get health status based on error rates

reset_counters()

Reset all counters (useful for testing)