File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ export interface SpanJSON {
58
58
}
59
59
60
60
// These are aligned with OpenTelemetry trace flags
61
- type TraceFlagNone = 0x0 ;
62
- type TraceFlagSampled = 0x1 ;
61
+ type TraceFlagNone = 0 ;
62
+ type TraceFlagSampled = 1 ;
63
63
export type TraceFlag = TraceFlagNone | TraceFlagSampled ;
64
64
65
65
export interface SpanContextData {
@@ -90,8 +90,9 @@ export interface SpanContextData {
90
90
* sampled or not. When set, the least significant bit documents that the
91
91
* caller may have recorded trace data. A caller who does not record trace
92
92
* data out-of-band leaves this flag unset.
93
+ * We allow number here because otel also does, so we can't be stricter than them.
93
94
*/
94
- traceFlags : TraceFlag ;
95
+ traceFlags : TraceFlag | number ;
95
96
96
97
// Note: we do not have traceState here, but this is optional in OpenTelemetry anyhow
97
98
}
You can’t perform that action at this time.
0 commit comments