Skip to content

feat(observability): add telemetry toggles, trace sampling, metrics auth#99

Merged
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
OthmanImam:feat/observability-toggles-metrics-auth
Jul 19, 2026
Merged

feat(observability): add telemetry toggles, trace sampling, metrics auth#99
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
OthmanImam:feat/observability-toggles-metrics-auth

Conversation

@OthmanImam

Copy link
Copy Markdown
Contributor
  • Add TRACING_ENABLED master switch and OTEL_TRACES_SAMPLER_RATIO head-based sampling (ParentBased/TraceIdRatioBased) in tracing config
  • Protect /observability/metrics with optional METRICS_AUTH_TOKEN using constant-time comparison (bearer header or query token)
  • Fix docker-compose Prometheus mount path and add Grafana datasource + dashboard provisioning for auto-loading
  • Document setup in docs/monitoring.md and env example files
  • Add tracing sampler tests and metrics token-auth tests

Closes #98

- Add TRACING_ENABLED master switch and OTEL_TRACES_SAMPLER_RATIO
  head-based sampling (ParentBased/TraceIdRatioBased) in tracing config
- Protect /observability/metrics with optional METRICS_AUTH_TOKEN using
  constant-time comparison (bearer header or query token)
- Fix docker-compose Prometheus mount path and add Grafana datasource +
  dashboard provisioning for auto-loading
- Document setup in docs/monitoring.md and env example files
- Add tracing sampler tests and metrics token-auth tests
@memplethee-lab
memplethee-lab merged commit 68e1d9c into SourceXXL:main Jul 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Prometheus metrics, OpenTelemetry tracing, and Grafana dashboards for observability

2 participants