Skip to content
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

chore(bridge-withdrawer): Add instrumentation #1324

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

ethanoroshiba
Copy link
Contributor

@ethanoroshiba ethanoroshiba commented Jul 31, 2024

Summary

Added instrumentation to bridge-withdrawer

Background

Adding instrumentation to all async calls will aid in tracing since spans will be emitted even if no events happen under them.

Changes

  • Added instrumentation to all async function calls that are not long-lived.
  • Minor refactor of BridgeWithdrawer::run() to avoid logging outside of spans.
  • Removed extraneous error logging from functions with #[instrument(..., err)].

Related Issues

Part of #1321

@ethanoroshiba ethanoroshiba changed the title chore(bridge-withdrawer): Add instrumentation to bridge-withdrawer chore(bridge-withdrawer): Add instrumentation Jul 31, 2024
@ethanoroshiba ethanoroshiba added the bridge-withdrawer code touching the bridge-withdrawer service label Jul 31, 2024
@ethanoroshiba ethanoroshiba force-pushed the ENG-670/add_instrumentation branch from d77142e to 98bc71c Compare August 15, 2024 14:32
@ethanoroshiba ethanoroshiba marked this pull request as ready for review August 15, 2024 14:51
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner August 15, 2024 14:51
@ethanoroshiba ethanoroshiba requested a review from noot August 15, 2024 14:51
@ethanoroshiba ethanoroshiba added observability observability, tracing, metrics and removed code-quality labels Aug 15, 2024
Copy link
Contributor

@Fraser999 Fraser999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny nitpick, but otherwise LGTM.

@ethanoroshiba ethanoroshiba added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit 217bc13 Aug 30, 2024
42 checks passed
@ethanoroshiba ethanoroshiba deleted the ENG-670/add_instrumentation branch August 30, 2024 14:21
steezeburger added a commit that referenced this pull request Sep 3, 2024
* main:
  chore: ibc e2e smoke test (#1284)
  chore(metrics): restrict `metrics` crate usage to `astria-telemetry` (#1192)
  fix(charts)!: sequencer-relayer chart correct startup env var (#1437)
  chore(bridge-withdrawer): Add instrumentation (#1324)
  chore(conductor): Add instrumentation (#1330)
  fix(cli, bridge-withdrawer): dont fail entire block due to bad withdraw event (#1409)
  feat(sequencer, bridge-withdrawer)!: enforce withdrawals consumed (#1391)
jbowen93 pushed a commit that referenced this pull request Sep 3, 2024
## Summary
Added instrumentation to `bridge-withdrawer`

## Background
Adding instrumentation to all async calls will aid in tracing since
spans will be emitted even if no events happen under them.

## Changes
- Added instrumentation to all async function calls that are not
long-lived.
- Minor refactor of `BridgeWithdrawer::run()` to avoid logging outside
of spans.
- Removed extraneous error logging from functions with
`#[instrument(..., err)]`.

## Related Issues
Part of #1321

---------

Co-authored-by: Fraser Hutchison <[email protected]>
jbowen93 pushed a commit that referenced this pull request Sep 6, 2024
## Summary
Added instrumentation to `bridge-withdrawer`

## Background
Adding instrumentation to all async calls will aid in tracing since
spans will be emitted even if no events happen under them.

## Changes
- Added instrumentation to all async function calls that are not
long-lived.
- Minor refactor of `BridgeWithdrawer::run()` to avoid logging outside
of spans.
- Removed extraneous error logging from functions with
`#[instrument(..., err)]`.

## Related Issues
Part of #1321

---------

Co-authored-by: Fraser Hutchison <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bridge-withdrawer code touching the bridge-withdrawer service observability observability, tracing, metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants