Skip to content

feat(sentry-core): Implement trace metric capture batching#1026

Draft
szokeasaurusrex wants to merge 1 commit intoszokeasaurusrex/metrics-protocolfrom
szokeasaurusrex/core-metrics-capture
Draft

feat(sentry-core): Implement trace metric capture batching#1026
szokeasaurusrex wants to merge 1 commit intoszokeasaurusrex/metrics-protocolfrom
szokeasaurusrex/core-metrics-capture

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Mar 5, 2026

Basic metrics capture functionality. Follow-up PR will implement the rest.

Closes #1023
Closes RUST-168

@linear-code
Copy link

linear-code bot commented Mar 5, 2026

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against a16e498

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/core-metrics-capture branch from fed0741 to 1182de0 Compare March 9, 2026 13:29
szokeasaurusrex added a commit that referenced this pull request Mar 9, 2026
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/core-metrics-capture branch from 1182de0 to 5a88567 Compare March 9, 2026 14:11
szokeasaurusrex added a commit that referenced this pull request Mar 9, 2026
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/core-metrics-capture branch from 5a88567 to e3ba50e Compare March 9, 2026 14:12
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review March 9, 2026 14:12
@szokeasaurusrex szokeasaurusrex requested a review from lcian as a code owner March 9, 2026 14:12
Comment on lines +175 to +177
/// Determines whether captured trace metrics should be sent to Sentry (defaults to true).
#[cfg(feature = "metrics")]
pub enable_metrics: bool,
Copy link
Member

Choose a reason for hiding this comment

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

So our intention here is for the users to explicitly opt in by adding both the feature flag and specifying enable_metrics: true. Right?

Suggested change
/// Determines whether captured trace metrics should be sent to Sentry (defaults to true).
#[cfg(feature = "metrics")]
pub enable_metrics: bool,
/// Determines whether captured trace metrics should be sent to Sentry (defaults to false).
#[cfg(feature = "metrics")]
pub enable_metrics: bool,

Copy link
Member

@lcian lcian left a comment

Choose a reason for hiding this comment

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

Looks good mostly.

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/metrics-protocol branch 3 times, most recently from da1a44c to d6d3ba8 Compare March 10, 2026 14:44
@szokeasaurusrex szokeasaurusrex marked this pull request as draft March 10, 2026 15:52
szokeasaurusrex added a commit that referenced this pull request Mar 16, 2026
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/core-metrics-capture branch from e3ba50e to edc47d5 Compare March 16, 2026 13:46
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/core-metrics-capture branch from edc47d5 to a16e498 Compare March 16, 2026 13:49
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