Skip to content

Codex/metrics section 0 1 deps#6366

Draft
shuheiktgw wants to merge 14 commits intomainfrom
codex/metrics-section-0-1-deps
Draft

Codex/metrics section 0 1 deps#6366
shuheiktgw wants to merge 14 commits intomainfrom
codex/metrics-section-0-1-deps

Conversation

@shuheiktgw
Copy link
Copy Markdown
Collaborator

Description

Describe the proposed changes made in this PR.

How was this PR tested?

Describe how you tested this PR.

shuheiktgw and others added 14 commits May 2, 2026 14:24
Port the metricspp library into the quickwit workspace as a single
crate with type-safe, zero-allocation metric declarations built on the
metrics crate. Includes two-level caching (thread-local + global
DashMap), observable counters/gauges with shadow atomics, RAII
GaugeGuard, Labels<N> templates, inventory-based metric discovery,
integration tests, property-based hash tests, criterion benchmarks,
the http_service example, and the inventory binary.

Made-with: Cursor
Move the inventory binary, build.rs (linker flags), and scripts/ from
quickwit-metrics into a dedicated quickwit-metrics-inventory crate.
Re-export `metrics` and `inventory` types via `$crate::__metrics::`
and `$crate::__inventory::` so downstream crates only need
`quickwit-metrics` in their Cargo.toml.

Made-with: Cursor
Replace name/subsystem/module_path fields with a &'static Metadata
reference (provides module_path, target/subsystem, and level) and add
static_labels for compile-time label name/value pairs. Update inventory
output to group metrics by module path, sorted by key name.

Made-with: Cursor
Export Quickwit metrics through the existing OpenTelemetry OTLP exporter path when enabled, while preserving Prometheus and DogStatsD routing. Group the telemetry providers and env-filter reload callback into TelemetryHandle so metrics, traces, and logs are initialized and shut down together.
@shuheiktgw shuheiktgw force-pushed the codex/metrics-section-0-1-deps branch from 92f2ad0 to 7a01598 Compare May 2, 2026 14:59
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.

2 participants