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(conductor): Add instrumentation #1330

Merged
merged 5 commits into from
Aug 30, 2024

Conversation

ethanoroshiba
Copy link
Contributor

@ethanoroshiba ethanoroshiba commented Aug 1, 2024

Summary

Added instrumentation to astria-conductor

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.
  • Added instrumentation on some non-async functions that utilize logging such that logging occurs within a span.
  • Removed instrumentation on run_until_stopped() functions.
  • Minor refactoring of run_until_stopped() functions to ensure logging occurs within spans.

Related Issues

Part of #1321

@github-actions github-actions bot added the conductor pertaining to the astria-conductor crate label Aug 1, 2024
@ethanoroshiba ethanoroshiba force-pushed the ENG-670/add_conductor_instrumentation branch from 5863be9 to eb0e958 Compare August 15, 2024 16:15
@ethanoroshiba ethanoroshiba marked this pull request as ready for review August 15, 2024 16:27
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner August 15, 2024 16:27
crates/astria-conductor/src/celestia/mod.rs Outdated Show resolved Hide resolved
crates/astria-conductor/src/celestia/mod.rs Outdated Show resolved Hide resolved
crates/astria-conductor/src/conductor.rs Outdated Show resolved Hide resolved
crates/astria-conductor/src/executor/mod.rs Outdated Show resolved Hide resolved
crates/astria-conductor/src/sequencer/mod.rs Outdated Show resolved Hide resolved
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit 293bc5c Aug 30, 2024
42 checks passed
@ethanoroshiba ethanoroshiba deleted the ENG-670/add_conductor_instrumentation branch August 30, 2024 14:18
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 `astria-conductor`

## 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.
- Added instrumentation on some non-async functions that utilize logging
such that logging occurs within a span.
- Removed instrumentation on `run_until_stopped()` functions.
- Minor refactoring of `run_until_stopped()` functions to ensure logging
occurs within spans.

## 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 `astria-conductor`

## 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.
- Added instrumentation on some non-async functions that utilize logging
such that logging occurs within a span.
- Removed instrumentation on `run_until_stopped()` functions.
- Minor refactoring of `run_until_stopped()` functions to ensure logging
occurs within spans.

## 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
conductor pertaining to the astria-conductor crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants