Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
06c20be
test(angular): Fix failing canary test (#19639)
Lms24 Mar 9, 2026
d5d4aaf
meta(changelog): Update changelog for 10.43.0
chargome Mar 9, 2026
66d9344
Merge pull request #19716 from getsentry/prepare-release/10.43.0
chargome Mar 9, 2026
22a39a4
release: 10.43.0
getsentry-bot Mar 9, 2026
5f5b11b
Merge branch 'release/10.43.0'
Mar 10, 2026
418c2c4
Merge pull request #19728 from getsentry/master
github-actions[bot] Mar 10, 2026
f04a416
style: Auto changes made from "yarn fix" (#19710)
JPeer264 Mar 10, 2026
a611e9e
fix(browser): Skip browserTracingIntegration setup for bot user agent…
chargome Mar 10, 2026
bc2592d
docs(new-release): Update docs based on new Craft flow (#19731)
s1gr1d Mar 10, 2026
1c1e6ea
fix(nestjs): Fork isolation scope in `@nestjs/event-emitter` instrume…
nicohrubec Mar 10, 2026
a0265e6
chore: add oxlint typescript program suppression to workspace setting…
logaretm Mar 10, 2026
94ca281
ref(nestjs): Move event instrumentation unit tests to separate file (…
nicohrubec Mar 10, 2026
3637bc5
docs(new-release): Document `sdkName` for craft (#19736)
s1gr1d Mar 10, 2026
3816c75
feat(core): Add `sentry.timestamp.sequence` attribute for timestamp t…
logaretm Mar 10, 2026
70c710c
chore(lint): Rule adjustments and fix warnings (#19612)
logaretm Mar 10, 2026
81932c5
feat(deps): bump simple-git from 3.30.0 to 3.33.0 (#19744)
dependabot[bot] Mar 10, 2026
f6faba8
feat(nestjs): Instrument `@nestjs/schedule` decorators (#19735)
nicohrubec Mar 11, 2026
293ddbd
chore(deps-dev): bump file-type from 20.5.0 to 21.3.1 (#19748)
dependabot[bot] Mar 11, 2026
6820ed9
feat(nestjs): Use more specific span origins for NestJS guards, pipes…
nicohrubec Mar 11, 2026
02e1074
fix(cloudflare): Recreate client when previous one was disposed (#19727)
JPeer264 Mar 11, 2026
8f99b6a
tests(core): Fix flaky metric sequence number test (#19754)
nicohrubec Mar 11, 2026
a303d51
feat(astro): Add Astro 6 support (#19745)
Lms24 Mar 11, 2026
2546b31
fix(nextjs): Log correct `lastEventId` when error is thrown in compon…
s1gr1d Mar 11, 2026
7c54f38
fix(core): Improve Vercel AI SDK instrumentation attributes (#19717)
RulaKhaled Mar 11, 2026
fd12ed2
chore: Clean up lint and format script names (#19719)
logaretm Mar 11, 2026
71a050c
feat(deps): Bump OpenTelemetry dependencies
andreiborza Mar 6, 2026
e6290c6
Disable OTel http instrumentation double-patch guard for ESM
andreiborza Mar 11, 2026
adf77be
Revert peer dep bump
andreiborza Mar 11, 2026
14577b7
feat(deps): bump hono from 4.12.5 to 4.12.7 (#19747)
dependabot[bot] Mar 11, 2026
bcb496e
Merge branch 'develop' into ab/bump-otel
andreiborza Mar 11, 2026
6bb4939
Merge remote-tracking branch 'origin/develop' into ab/bump-otel
andreiborza Mar 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests(core): Fix flaky metric sequence number test (#19754)
Mock `timestampInSeconds` in the "increments the sequence number across
consecutive metrics" test to return a fixed value. The test was flaky
because consecutive calls could land on different milliseconds, causing
the sequence counter to reset unexpectedly.

Closes #19749

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
nicohrubec and claude authored Mar 11, 2026
commit 8f99b6a00aa428273f633fa828e6e0ee8b27572f
7 changes: 7 additions & 0 deletions packages/core/test/lib/metrics/internal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '../../../src/metrics/internal';
import type { Metric } from '../../../src/types-hoist/metric';
import * as loggerModule from '../../../src/utils/debug-logger';
import * as timeModule from '../../../src/utils/time';
import { _INTERNAL_resetSequenceNumber } from '../../../src/utils/timestampSequence';
import { getDefaultTestClientOptions, TestClient } from '../../mocks/client';

Expand Down Expand Up @@ -1080,6 +1081,10 @@ describe('_INTERNAL_captureMetric', () => {

describe('sentry.timestamp.sequence', () => {
it('increments the sequence number across consecutive metrics', () => {
// Mock timestampInSeconds to return a fixed value so the sequence number
// does not reset due to millisecond boundary crossings between calls.
const timestampSpy = vi.spyOn(timeModule, 'timestampInSeconds').mockReturnValue(1234.567);

const options = getDefaultTestClientOptions({ dsn: PUBLIC_DSN });
const client = new TestClient(options);
const scope = new Scope();
Expand All @@ -1093,6 +1098,8 @@ describe('_INTERNAL_captureMetric', () => {
expect(buffer?.[0]?.attributes?.['sentry.timestamp.sequence']).toEqual({ value: 0, type: 'integer' });
expect(buffer?.[1]?.attributes?.['sentry.timestamp.sequence']).toEqual({ value: 1, type: 'integer' });
expect(buffer?.[2]?.attributes?.['sentry.timestamp.sequence']).toEqual({ value: 2, type: 'integer' });

timestampSpy.mockRestore();
});

it('resets the sequence number via _INTERNAL_resetSequenceNumber', () => {
Expand Down