Closed trajan0x closed 1 month ago
The changes in this pull request involve updates to the documentation in core/metrics/README.md
, modifications to the baseHandler
struct in core/metrics/base.go
, and the introduction of a new file core/metrics/standard.go
that implements a metrics handling system using OpenTelemetry. The documentation clarifies environment variable configurations, while the code changes include a deprecation notice for a field in base.go
and the addition of a new metrics struct and related functions in standard.go
.
File | Change Summary |
---|---|
core/metrics/README.md | Updated documentation for metrics package, clarified METRICS_HANDLER , corrected spelling errors, and enhanced descriptions for OTLP exporters. |
core/metrics/base.go | Added deprecation comment for meter field in baseHandler , reorganized imports, and introduced newStandardMetrics(ctx, b) function call. |
core/metrics/standard.go | Introduced standardMetrics struct for service metrics, added newStandardMetrics function, and implemented uptimeCallback method for uptime tracking. |
core/metrics/README.md
regarding the configuration of multiple OTLP exporters directly relate to the new feature introduced in this PR, which enables multiple exports within the metrics module.size/m
🐇 In the meadow, metrics bloom,
With handlers set to chase the gloom.
A gauge for uptime, clear and bright,
Documented well, it feels just right!
With deprecations, we tidy the space,
In the world of code, we find our place! 🌼
Attention: Patch coverage is 50.00000%
with 10 lines
in your changes missing coverage. Please review.
Project coverage is 33.24611%. Comparing base (
6415acd
) to head (a96ea1d
). Report is 20 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
core/metrics/standard.go | 44.44444% | 8 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
a96ea1d
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f99b51a4.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-uptime-metric.sanguine-fe.pages.dev |
Description
Introduces an uptime metric
Summary by CodeRabbit
Documentation
METRICS_HANDLER
and OTLP exporters.New Features
Refactor
meter
field in thebaseHandler
struct.