-
Notifications
You must be signed in to change notification settings - Fork 246
feat(tracing): part 10 da retriever tracing #2991
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
Conversation
Add OpenTelemetry tracing for the core Sequencer interface. This traces all three main operations: - SubmitBatchTxs: tracks tx count and batch size - GetNextBatch: tracks tx count, forced inclusion count, batch size - VerifyBatch: tracks batch data count and verification result The tracing wrapper can be used with any Sequencer implementation (single, based, etc.) via WithTracingSequencer().
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
Summary of ChangesHello @chatton, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the system's observability by integrating OpenTelemetry tracing into the Data Availability (DA) retriever. It introduces a tracing decorator that wraps the existing Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Claude finished @chatton's task in 1m 41s —— View job Code Review Complete ✓I've completed a comprehensive review of this PR which adds OpenTelemetry tracing for the DA retriever. Overall, this is a well-implemented and valuable addition to the observability infrastructure. The code follows established patterns and includes solid test coverage. SummaryWhat's Good:
Areas for Improvement:
Detailed Findings1. Code Quality & Architecture ✓Strengths:
Observations: 2. Error Handling & Resilience ✓Strengths:
Good Practice: 3. Security ✓No Issues Found:
4. Performance & Resource Efficiency ✓Strengths:
Minor Observation: 5. Testing & Reliability
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces OpenTelemetry tracing for the DARetriever, which is a great addition for observability. The implementation of the tracedDARetriever decorator is clean and follows best practices for tracing in Go. The new code is well-structured and includes corresponding unit tests.
My main feedback is a suggestion to enhance the tests to ensure all new tracing attributes are verified. Overall, this is a solid contribution.
|
|
||
| attrs := span.Attributes() | ||
| testutil.RequireAttribute(t, attrs, "da.height", int64(50)) | ||
| testutil.RequireAttribute(t, attrs, "event.count", 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is great for verifying the success case. To make it more comprehensive, it would be beneficial to also assert that the block.heights attribute is correctly set on the span when events are returned.
The testutil.RequireAttribute helper doesn't seem to support slice attributes, so you might need to perform this check manually. Here's a suggestion to add this verification:
| testutil.RequireAttribute(t, attrs, "event.count", 2) | |
| testutil.RequireAttribute(t, attrs, "event.count", 2) | |
| // Check for block.heights attribute | |
| var heightsValue attribute.Value | |
| for _, attr := range attrs { | |
| if attr.Key == "block.heights" { | |
| heightsValue = attr.Value | |
| break | |
| } | |
| } | |
| require.NotNil(t, heightsValue, "attribute 'block.heights' not found") | |
| require.Equal(t, attribute.INT64SLICE, heightsValue.Type()) | |
| require.Equal(t, []int64{100, 101}, heightsValue.AsInt64Slice()) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2991 +/- ##
==========================================
+ Coverage 59.17% 59.25% +0.08%
==========================================
Files 105 106 +1
Lines 9998 10023 +25
==========================================
+ Hits 5916 5939 +23
- Misses 3454 3456 +2
Partials 628 628
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overview
ref #2956
Adding tracing for da retrieval, needed to bump sonic dep after go version bump.