Skip to content

Commit 6a6b63a

Browse files
chargomeclaude
andcommitted
fix: remove profile.start_timestamp from mapping
Only consumed by the transaction-based processEvent profiling path, not by span streaming. The fallback uses the span's own start_timestamp. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bb6d2c6 commit 6a6b63a

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

packages/core/src/tracing/spans/scopeContextAttributes.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ export function scopeContextsToSpanAttributes(contexts: Contexts): Record<string
2727
if (profile.profiler_id) {
2828
attrs['sentry.profiler_id'] = profile.profiler_id;
2929
}
30-
if (profile.start_timestamp != null) {
31-
attrs['profile.start_timestamp'] = profile.start_timestamp;
32-
}
3330
}
3431

3532
// CloudResourceContext keys are already in dot-notation (OTel resource conventions)

packages/core/test/lib/tracing/spans/captureSpan.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -682,14 +682,6 @@ describe('scopeContextsToSpanAttributes', () => {
682682
});
683683
});
684684

685-
it('maps start_timestamp', () => {
686-
const contexts: Contexts = { profile: { profile_id: 'abc', start_timestamp: 1234567890 } };
687-
expect(scopeContextsToSpanAttributes(contexts)).toEqual({
688-
'sentry.profile_id': 'abc',
689-
'profile.start_timestamp': 1234567890,
690-
});
691-
});
692-
693685
it('produces no attributes for empty profile context', () => {
694686
const contexts: Contexts = { profile: { profile_id: '' } };
695687
expect(scopeContextsToSpanAttributes(contexts)).toEqual({});

0 commit comments

Comments
 (0)