Skip to content

chore(bridge-withdrawer): Add instrumentation#1324

Merged
ethanoroshiba merged 6 commits intomainfrom
ENG-670/add_instrumentation
Aug 30, 2024
Merged

chore(bridge-withdrawer): Add instrumentation#1324
ethanoroshiba merged 6 commits intomainfrom
ENG-670/add_instrumentation

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
ethanoroshiba and others added 2 commits August 28, 2024 08:41
Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
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 and others added 2 commits August 30, 2024 08:58
Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
@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
@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 <190532+Fraser999@users.noreply.github.com>
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 <190532+Fraser999@users.noreply.github.com>
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