@obtrace/browser 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29733,14 +29733,14 @@ function setupOtelWeb(config) {
|
|
|
29733
29733
|
const parsed = parseSupabaseURL(url, method);
|
|
29734
29734
|
if (!parsed) return;
|
|
29735
29735
|
const status = typeof result2?.status === "number" ? result2.status : 0;
|
|
29736
|
-
const t = trace.getTracer("@obtrace/sdk-browser", "2.
|
|
29736
|
+
const t = trace.getTracer("@obtrace/sdk-browser", "2.5.1");
|
|
29737
29737
|
const synth = { "session.id": sessionId, "supabase.ref": parsed.ref, "span.synthetic": "true" };
|
|
29738
|
-
const parentCtx = trace.setSpan(
|
|
29738
|
+
const parentCtx = trace.setSpan(ROOT_CONTEXT, parentSpan);
|
|
29739
29739
|
context.with(parentCtx, () => {
|
|
29740
29740
|
const gw = t.startSpan("supabase.gateway", {
|
|
29741
29741
|
attributes: { ...synth, "http.method": method.toUpperCase(), "http.status_code": status, "peer.service": "supabase.kong" }
|
|
29742
29742
|
});
|
|
29743
|
-
const gwCtx = trace.setSpan(
|
|
29743
|
+
const gwCtx = trace.setSpan(ROOT_CONTEXT, gw);
|
|
29744
29744
|
context.with(gwCtx, () => {
|
|
29745
29745
|
if (parsed.service === "postgrest") {
|
|
29746
29746
|
const db2 = t.startSpan("supabase.db.query", {
|