Skip to content

Commit c646952

Browse files
cursoragentclaude
andcommitted
fix: Remove stray backtick fences from CHANGELOG and fix trace data propagation check
- Remove stray 4-backtick sequences from CHANGELOG.md that were breaking markdown rendering - Fix getTraceData to check actual external propagation context value instead of just registration - This ensures proper fallback to Sentry scope-based propagation when no OTel span is active Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1bf9f6e commit c646952

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
});
6262
```
6363

64-
````
65-
6664
### Other Changes
6765

6866
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
@@ -3799,4 +3797,3 @@ A full list of changes in the `5.x` release of the SDK can be found in the [5.x
37993797
## 4.x
38003798
38013799
A full list of changes in the `4.x` release of the SDK can be found in the [4.x Changelog](./docs/changelog/v4.md).
3802-
````

‎packages/core/src/utils/traceData.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import{getAsyncContextStrategy}from'../asyncContext';
22
import{getMainCarrier}from'../carrier';
33
importtype{Client}from'../client';
4-
import{getClient,getCurrentScope,hasExternalPropagationContext}from'../currentScopes';
4+
import{getClient,getCurrentScope,getExternalPropagationContext}from'../currentScopes';
55
import{isEnabled}from'../exports';
66
importtype{Scope}from'../scope';
77
import{getDynamicSamplingContextFromScope,getDynamicSamplingContextFromSpan}from'../tracing';
@@ -49,7 +49,7 @@ export function getTraceData(
4949

5050
// When no active span and external propagation context is registered (e.g. OTLP integration),
5151
// return empty to let the OTel propagator handle outgoing request propagation.
52-
if(!span&&hasExternalPropagationContext()){
52+
if(!span&&getExternalPropagationContext()){
5353
return{};
5454
}
5555

0 commit comments

Comments
 (0)