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
- Metrics
Summary - Summary payload for recent in-memory metrics.
- System
Health - System health metrics
- Telemetry
Manager - Telemetry manager
- Timer
- Performance timer for measuring operation duration
- Trace
Export Config - Runtime configuration for OTLP trace export.
Enums§
- Metric
Type - Metric types for telemetry
- Trace
Export Protocol - 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