Skip to content

Commit cda0b58

Browse files
logaretmclaude
andcommitted
fix(tests): Account for INP span in tracesSampler-precedence client report quantity
The auto-registered webVitalsIntegration now creates an INP span on button click that also gets negatively sampled, bumping the discarded event count from 1 to 2. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bb4ce3b commit cda0b58

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration
    • linked-traces-streamed/consistent-sampling/tracesSampler-precedence
    • linked-traces/consistent-sampling/tracesSampler-precedence
  • packages/core/src

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/linked-traces-streamed/consistent-sampling/tracesSampler-precedence/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sentryTest.describe('When `consistentTraceSampling` is `true`', () => {
5353
discarded_events: [
5454
{
5555
category: 'span',
56-
quantity: 1,
56+
quantity: 2,
5757
reason: 'sample_rate',
5858
},
5959
],

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/linked-traces/consistent-sampling/tracesSampler-precedence/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sentryTest.describe('When `consistentTraceSampling` is `true`', () => {
5555
discarded_events: [
5656
{
5757
category: 'transaction',
58-
quantity: 1,
58+
quantity: 2,
5959
reason: 'sample_rate',
6060
},
6161
],

packages/core/src/shared-exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type { OfflineStore, OfflineTransportOptions } from './transports/offline
1010
export type { IntegrationIndex } from './integration';
1111
export * from './tracing';
1212
export * from './semanticAttributes';
13-
export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
13+
export { createEventEnvelope, createSessionEnvelope } from './envelope';
1414
export {
1515
captureCheckIn,
1616
withMonitor,

0 commit comments

Comments
 (0)