Closed golangisfun123 closed 2 months ago
The changes introduce a new logging mechanism to the Bot
structure in botmd.go
, integrating an experimentalLogger
for enhanced logging capabilities. The NewBot
function is updated to initialize this logger. Additionally, error logging is improved in the traceCommand
and rfqRefund
functions, with adjustments to the retry logic in rfqRefund
to allow more attempts and longer wait times. A new dependency on otelzap
is added in go.mod
, enhancing the project's observability.
Files | Change Summary |
---|---|
contrib/opbot/botmd/botmd.go | Added logger experimentalLogger.ExperimentalLogger to Bot struct; modified NewBot for logger initialization. |
contrib/opbot/botmd/commands.go | Enhanced error logging in traceCommand and rfqRefund ; adjusted retry logic in rfqRefund (increased attempts and time). |
contrib/opbot/go.mod | Added github.com/uptrace/opentelemetry-go-extra/otelzap v0.3.1 dependency; removed indirect requirement for otelzap . |
go
, size/xs
In the meadow where the bunnies hop,
A logger's added, no need to stop!
With retries aplenty and errors in sight,
Our bot's now ready to take flight!
Hooray for changes, let’s give a cheer,
For better logs and less bunny fear! 🐇✨
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: |
3d7c677
|
Status: | ✅ Deploy successful! |
Preview URL: | https://b1630fbc.sanguine-fe.pages.dev |
Branch Preview URL: | https://log-errors.sanguine-fe.pages.dev |
Attention: Patch coverage is 0%
with 14 lines
in your changes missing coverage. Please review.
Project coverage is 37.95807%. Comparing base (
265aff4
) to head (3d7c677
). Report is 3 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
contrib/opbot/botmd/commands.go | 0.00000% | 10 Missing :warning: |
contrib/opbot/botmd/botmd.go | 0.00000% | 4 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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
Improvements
Dependency Updates