Files
klz-cables.com/.pnpm-store/v10/files/1d/9bb30cf99f1d1bdc3a4061ae3fe9ccbf235642ff48ad3c413f96d7caf95f60ea17c22142fd1f9bf978039b848db3347dd3b84b89748b39a0eb94099d65e2bc
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

26 lines
867 B
Plaintext

import { withScope, getTraceContextFromScope } from '../currentScopes.js';
import { getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromScope } from '../tracing/dynamicSamplingContext.js';
import { getActiveSpan, spanToTraceContext } from './spanUtils.js';
/** Extract trace information from scope */
function _getTraceInfoFromScope(
client,
scope,
) {
if (!scope) {
return [undefined, undefined];
}
return withScope(scope, () => {
const span = getActiveSpan();
const traceContext = span ? spanToTraceContext(span) : getTraceContextFromScope(scope);
const dynamicSamplingContext = span
? getDynamicSamplingContextFromSpan(span)
: getDynamicSamplingContextFromScope(client, scope);
return [dynamicSamplingContext, traceContext];
});
}
export { _getTraceInfoFromScope };
//# sourceMappingURL=trace-info.js.map