Skip to content

Commit

Permalink
Get correct ids
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed Oct 23, 2023
1 parent c53543d commit 2eec365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ class SynapseTracePropargator implements TextMapPropagator {
const trace_data = header.split(':');
const traceId = trace_data[0];
const spanId = trace_data[1];
let parentId: string | null = trace_data[1];
let parentId: string | null = trace_data[2];
if (parentId === "0") {
parentId = null;
}
const traceFlags = Number(trace_data[2]);
const traceFlags = Number(trace_data[3]);

context = api.trace.setSpan(
context,
Expand Down

0 comments on commit 2eec365

Please sign in to comment.