MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / traceparentValueFor

Function traceparentValueFor

apps/cloud/src/server.ts:125–126  ·  view source on GitHub ↗
(spanContext: SpanContext)

Source from the content-addressed store, hash-verified

123const tracer = trace.getTracer("executor-cloud-worker");
124
125const traceparentValueFor = (spanContext: SpanContext): string =>
126 `00-${spanContext.traceId}-${spanContext.spanId}-${(spanContext.traceFlags & 0xff).toString(16).padStart(2, "0")}`;
127
128const withTraceparent = (request: Request, spanContext: SpanContext): Request => {
129 const headers = new Headers(request.headers);

Callers 1

withTraceparentFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected