Skip to content

chore(tracing): improve bundle tracing, break when receiver is dropped #115

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

Merged
merged 7 commits into from
Jun 20, 2025

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Jun 19, 2025

No description provided.

Copy link
Member Author

Evalir commented Jun 19, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Evalir Evalir force-pushed the evalir/logging-bundle-improvements branch from 4905988 to 839dc47 Compare June 19, 2025 13:35
@@ -89,10 +89,12 @@ impl BundlePoller {
.await
.inspect_err(|err| debug!(%err, "Error fetching bundles"))
{
let _guard = span.entered();
debug!(count = ?bundles.len(), "found bundles");
for bundle in bundles.into_iter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

could we add a trace or debug log for the bundle id of each bundle?

Copy link
Member

Choose a reason for hiding this comment

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

that should be done in the cache on ingestion, rather than here

@Evalir Evalir requested review from prestwich and anna-carroll June 20, 2025 14:27
@@ -68,4 +71,25 @@ impl CacheTask {
let fut = self.task_future(sim_cache);
(c, tokio::spawn(fut))
}

/// Utility to log a bundle and its contents.
fn log_bundle(bundle: &TxCacheBundle) {
Copy link
Member

Choose a reason for hiding this comment

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

per discussion, these events should live in the SDK in SimCache::ingest

I also think these are too verbose.

@Evalir Evalir requested a review from prestwich June 20, 2025 15:29
@Evalir Evalir enabled auto-merge (squash) June 20, 2025 15:29
@Evalir Evalir merged commit 1168ff8 into main Jun 20, 2025
6 checks passed
@Evalir Evalir deleted the evalir/logging-bundle-improvements branch June 20, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants