Releases: tryfix/metrics
Releases · tryfix/metrics
Release list
Bug fixes
OTEL metric unit support
Added: Unit field to MetricConf for OTEL metric unit support (e.g. "ms", "By", "1")
Bug fixes
Bug Fixes
Add OpenTelemetry backend, exemplars, and integration tests
Add OpenTelemetry backend, exemplars, and integration tests
Breaking Changes
- Counter.Count, Gauge.Count, Gauge.Set, and Observer.Observe now accept variadic ...RecordOption parameter. Existing callers are unaffected, but custom interface implementations must update their signatures.
What's Changed
- Add OTELReporter backend with support for counters, gauges, gauge
functions, and histograms backed by OpenTelemetry SDK - Add WithContext(ctx) RecordOption to propagate trace context as
exemplars on metric recordings - Add functional options pattern for OTELReporter (WithMeterProvider)
- Add exponential histogram support via AggregationBase2ExponentialHistogram
- Add integration tests with Testcontainers verifying three ingestion
paths: OTLP direct push, OpenMetrics scrape, and PrometheusProto scrape - Verify native histograms + exemplars work end-to-end through
PrometheusProto scrape protocol - Add doc comments to all interfaces, structs, and fields in reporter.go
- Add GitHub Actions CI workflow (build, vet, integration tests)
- Update README with usage docs, exemplar guide, and native histogram
- exemplar setup instructions
v2.0.0
Breaking Changes
The Gauge interface now includes Set() method
What's Changed
- gauge set metrics introduce by @HADLakmal in #4
New Contributors
- @HADLakmal made their first contribution in #4
Full Changelog: v1.2.0...v2.0.0
Enhancements (superseded by v2.0.0)
⚠️ This release has been superseded by v2.0.0 and should not be used.
Bug fixes
Enhancements
Enhancements
- Prometheus client version upgrades
- Metrics collector config Help added
- Observes default quartile option added