You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ending the span automatically removes it as the active span on the scope
127
+
// Ending the span automatically removes it as the active span
126
128
checkoutSpan.end();
127
129
})
128
130
```
131
+
132
+
Using `startInactiveSpan` in combination with `setActiveSpanInBrowser` allows you to create an inactive span that can be made active until you manually end it. In contrast, [`startSpanManual`](#starting-an-active-span-with-manual-end-startspanmanual) allows you to end the span manually at any point, but it only remains active within the callback.
133
+
134
+
<Alert>
135
+
136
+
Note that `setActiveSpanInBrowser` is only available in browser environments! If you're running code in the server
137
+
(for example for server-side rendering), make sure to guard this call to only run in the browser.
0 commit comments