Closed dwasse closed 2 weeks ago
These changes introduce metrics recording with OpenTelemetry into the RFQ (Request For Quote) service's relayer component. A new otelRecorder
is implemented along with methods to retrieve and record the status counts of quote requests. The relayer has been modified to periodically record these metrics, and new panels have been added to the dashboard JSON configuration.
File(s) | Summary |
---|---|
services/rfq/go.mod | Added github.com/cornelk/hashmap v1.0.8 as a direct dependency, removing it as an indirect dependency. |
services/rfq/relayer/reldb/base/quote.go | Added GetStatusCounts method to Store type to retrieve quote request counts by status. |
services/rfq/relayer/reldb/db.go | Added GetStatusCounts method to Reader interface to retrieve quote request counts by status. |
services/rfq/relayer/service/otel.go (both changesets) | Introduced otelRecorder for metrics recording with OpenTelemetry, including initialization and methods. |
services/rfq/relayer/service/otel_generated.go | Added iOtelRecorder interface with RecordStatusCount method for status count recording. |
services/rfq/relayer/service/relayer.go | Updated Relayer struct and NewRelayer function; added recordMetrics method. |
docs/bridge/docs/rfq/Relayer/Relayer.md | Documented new status_count metric for relayer. |
services/rfq/relayer/dashboards/dashboard.json | Updated multiple fields and added new panels for metrics monitoring. |
In the land of code where numbers soar,
Metrics whisper, "Record me more!" π
With OpenTelemetry's guiding light,
Status counts in metrics' flight. π
This relayer's metrics now refined,
Dashboards glow, insights aligned.
Oh, the tales our data tells,
In quote requests where logic dwells. πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
3e0dc86
|
Status: | β Deploy successful! |
Preview URL: | https://04759448.sanguine-fe.pages.dev |
Branch Preview URL: | https://feat-status-metric.sanguine-fe.pages.dev |
Attention: Patch coverage is 0%
with 76 lines
in your changes missing coverage. Please review.
Project coverage is 25.61864%. Comparing base (
9779cda
) to head (3e0dc86
).
Files | Patch % | Lines |
---|---|---|
services/rfq/relayer/service/otel.go | 0.00000% | 31 Missing :warning: |
services/rfq/relayer/service/relayer.go | 0.00000% | 24 Missing :warning: |
services/rfq/relayer/reldb/base/quote.go | 0.00000% | 21 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
Documentation
QuoteRequestStatus
values over time.Bug Fixes
55ed21b5641348d45d9237fee0af0188e9307c12: docs preview link c8279629c3f2a45af5e5833b358dd1a3a689e30d: docs preview link