Module telemetry

Module telemetry 

Source
Expand description

Telemetry and metrics collection for Gestura.app.

This module provides two complementary observability layers:

  • an in-memory metric store used by the GUI/API for local inspection
  • optional OTLP trace export for correlated request tracing in tools such as SigNoz

Structs§

Metric
Telemetry metric
MetricsSummary
Summary payload for recent in-memory metrics.
SystemHealth
System health metrics
TelemetryManager
Telemetry manager
Timer
Performance timer for measuring operation duration
TraceExportConfig
Runtime configuration for OTLP trace export.

Enums§

MetricType
Metric types for telemetry
TraceExportProtocol
Supported OTLP transport protocols for trace export.

Constants§

DEFAULT_OTLP_GRPC_TRACE_ENDPOINT
Default OTLP/gRPC endpoint for local trace collection.
DEFAULT_OTLP_HTTP_TRACE_ENDPOINT
Default OTLP/HTTP endpoint for local trace collection.
DEFAULT_OTLP_TRACE_ENDPOINT
Default OTLP trace endpoint for the current default transport.
OTEL_SEMCONV_SCHEMA_URL
Current OpenTelemetry semantic-conventions schema URL used for traces.

Functions§

get_telemetry_manager
Get the global telemetry manager
increment_counter
Convenience function to increment a counter
init_tracing_subscriber
Initialize the global tracing subscriber with optional OTLP trace export.
record_histogram
Convenience function to record a histogram value
set_gauge
Convenience function to set a gauge
shutdown_tracing
Flush and shut down the global tracer provider.
start_timer
Convenience function to start a timer