Skip to content

ref(log): Extract Sentry tracing layer setup into a function - #743

Merged
jan-auer merged 1 commit into
mainfrom
ref/log-sentry-layers
Oct 30, 2026
Merged

jan-auer merged 1 commit into
mainfrom
ref/log-sentry-layers

Conversation

@jan-auer

@jan-auer jan-auer commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #741, which moved objectstore_log::init to the split Sentry tracing layers. Before this change, init built the layers inside the closure that checks whether the Sentry client is enabled. That closure also held its own imports, so init was hard to read.

Now a private sentry_layers() function builds the layers, and init only decides whether to attach them. The layers and their filters are the same as before.

The init docs describe the same filtering as before, as a bullet list grouped by spans and events. The comment on the error filter now names the ErrorLayer. It also says why the LogLayer filter does not need to accept all spans.

Move the Sentry layer construction out of the closure in init into a
private sentry_layers() function, keeping its imports local to it. List
the Sentry filtering in init's docs as grouped bullet points and clarify
why only the ErrorLayer filter needs to accept all spans.
@jan-auer
jan-auer requested a review from a team as a code owner October 30, 2026 09:58
@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

⚪ None (no workspace changed)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR does not change any workspace, so it will not appear in any changelog.


🤖 This preview updates automatically when you update the PR.

@jan-auer
jan-auer enabled auto-merge (squash) October 30, 2026 10:00
@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.25000% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.54%. Comparing base (45ae04d) to head (cb7a2d1).

Files with missing lines Patch % Lines
objectstore-log/src/subscriber.rs 6.25% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #743      +/-   ##
==========================================
- Coverage   91.56%   91.54%   -0.03%     
==========================================
  Files         116      116              
  Lines       22084    22088       +4     
==========================================
- Hits        20222    20221       -1     
- Misses       1862     1867       +5     
Components Coverage Δ
Rust Backend 94.74% <ø> (ø)
Rust Client 84.29% <ø> (ø)
Python Client 93.88% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jan-auer
jan-auer merged commit 764b52c into main Oct 30, 2026
26 checks passed
@jan-auer
jan-auer deleted the ref/log-sentry-layers branch October 30, 2026 10:10
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.

2 participants