-
Notifications
You must be signed in to change notification settings - Fork 190
feat: add metrics-exporter-otel crate #595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… boundaries Add support for configuring custom histogram bucket boundaries in the OpenTelemetry exporter. This allows users to define specific bucket boundaries for individual metrics, enabling better histogram resolution tailored to expected value distributions. - Add histogram_bounds HashMap shared between recorder and storage via Arc<RwLock<>> - Implement set_histogram_bounds() method to configure boundaries before histogram creation - Apply custom boundaries when creating histograms in OtelMetricStorage - Add comprehensive test coverage for custom histogram bounds functionality - Fix integration tests to use InMemoryMetricExporter with proper assertions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Add detailed documentation following patterns from other metrics exporters: - Module-level overview with features, usage examples, and performance notes - Comprehensive API documentation for OpenTelemetryRecorder - Detailed method docs with examples and behavioral constraints - Internal type documentation for MetricDescription and MetricMetadata - Missing docs enforcement and broken link detection 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add basic usage example - Add custom histogram bounds example - Add OTLP exporter example - Significantly reduce documentation verbosity - Delegate unit conversion details to Unit documentation - Clarify that descriptions/bounds only apply to metrics created after they are set 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
found someone already took the name |
Found the name already took by someone https://crates.io/crates/metrics-exporter-opentelemetry
@tobz @LucioFranco Although the size of the PR is quite non-trival, could you please take a look? |
I can appreciate the desire to get this merged, but reviewing brand new crate additions will likely take some time (3-4 weeks) since I'm fairly busy and don't spend a ton of time reviewing PRs in the repository. If you want to start using the crate sooner, then it might be worth creating your own repository for it and publishing it to crates.io. It's always possible to transfer ownership later on if we think it would be better suited to live in the |
Summary
Features
Test Plan
Examples
Closes #275
🤖 Generated with Claude Code