Closed golangisfun123 closed 3 weeks ago
The changes in this pull request enhance the functionality of various structures and methods within the omnirpc
service, primarily focusing on metrics and tracing integration. Key modifications include the addition of a metrics handler field in several request-related structures, the introduction of new methods for setting this handler, and updates to existing methods to incorporate tracing functionality. The changes also involve some field removals and method signature updates to accommodate these enhancements.
File Path | Change Summary |
---|---|
services/omnirpc/http/capture_client.go |
- Added handler metrics.Handler field to CaptureClient and CapturedRequest . - Updated NewCaptureClient and NewRequest methods. - Enhanced methods to include tracing spans. |
services/omnirpc/http/client.go |
- Modified NewClient method to accept metrics.Handler parameter. |
services/omnirpc/http/fasthttp.go |
- Added handler metrics.Handler field to fastHTTPRequest and fastHTTPClient . - Updated NewFastHTTPClient method. - Enhanced methods to include tracing spans. |
services/omnirpc/http/resty.go |
- Added handler metrics.Handler field to RestyClient and restyRequest . - Updated NewRestyClient method. - Enhanced methods to include tracing spans and improved error handling. |
services/omnirpc/proxy/forward.go |
- Updated import statements. - Modified forwardRequest method to use f.handler.Tracer() . - Added metrics integration. |
services/omnirpc/proxy/forwarder.go |
- Removed tracer field and added handler metrics.Handler . - Updated methods to use the new handler . |
services/omnirpc/proxy/server.go |
- Removed tracer field from RPCProxy . - Updated NewProxy method to include handler parameter. |
services/omnirpc/modules/confirmedtofinalized/finalizedproxy.go |
- Updated NewProxy method to include handler parameter. |
services/omnirpc/modules/harmonyproxy/harmonyproxy.go |
- Updated NewHarmonyProxy method to include handler parameter. - Enhanced error handling in ProxyRequest method. |
services/omnirpc/modules/receiptsbackup/receiptsbackup.go |
- Updated NewProxy method to include handler parameter. |
services/rfq/api/db/activequoterequeststatus_string.go |
- Updated _ActiveQuoteRequestStatus_index variable to adjust indexing for string representation. |
metrics.Handler
.M-docs
🐰 In the meadow, we hop and play,
Metrics and tracing lead the way!
With handlers added, our requests are bright,
In the code we dance, a joyful sight!
Let's celebrate changes, both big and small,
Together we thrive, together we call! 🌼
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: |
cf9763f
|
Status: | ✅ Deploy successful! |
Preview URL: | https://b364e3d8.sanguine-fe.pages.dev |
Branch Preview URL: | https://omnirpc-request-tracing.sanguine-fe.pages.dev |
Attention: Patch coverage is 87.14286%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 30.71720%. Comparing base (
791b0ef
) to head (cf9763f
). Report is 73 commits behind head on master.
:exclamation: There is a different number of reports uploaded between BASE (791b0ef) and HEAD (cf9763f). Click for more details.
HEAD has 2 uploads less than BASE
| Flag | BASE (791b0ef) | HEAD (cf9763f) | |------|------|------| |solidity|2|0|
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
Summary by CodeRabbit
New Features
WithMetrics
method to associate requests with metrics handling.Bug Fixes
ActiveQuoteRequestStatus
constants.Chores