Skip to content

Commit 17136e7

Browse files
HazATkamilogorek
andauthored
Apply suggestions from code review
Co-authored-by: Kamil Ogórek <[email protected]>
1 parent cd7df0a commit 17136e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collections/_documentation/performance/distributed-tracing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ function processItem(item, transaction) {
536536

537537
#### Retrieving a Transaction
538538

539-
In cases where you want to attach Spans to an already ongoing Transaction you can use `Sentry.getCurrentHub().getScope().getTransaction()`. This function will return a `Transaction` in case there is a running Transaction otherwise it returns `undefined`. If you are using our Tracing integration by default we attach the Transaction to the Scope. So you could do something like this:
539+
In cases where you want to attach a span to already ongoing transaction, you can use `Sentry.getCurrentHub().getScope().getTransaction()` call. This function will return a `Transaction` in case there is a running transaction or `undefined` otherwise. If you are using our Tracing integration, we attach the transaction to the scope by default, so you could do something like this:
540540

541541
```javascript
542542
function myJsFunction() {
@@ -640,7 +640,7 @@ app.use(function processItems(req, res, next) {
640640

641641
#### Retrieving a Transaction
642642

643-
In cases where you want to attach Spans to an already ongoing Transaction you can use `Sentry.getCurrentHub().getScope().getTransaction()`. This function will return a `Transaction` in case there is a running Transaction otherwise it returns `undefined`. If you are using our Express integration by default we attach the Transaction to the Scope. So you could do something like this:
643+
In cases where you want to attach a span to already ongoing transaction, you can use `Sentry.getCurrentHub().getScope().getTransaction()` call. This function will return a `Transaction` in case there is a running transaction or `undefined` otherwise. If you are using our Tracing integration, we attach the transaction to the scope by default, so you could do something like this:
644644

645645
```javascript
646646
app.get("/success", function successHandler(req, res) {

0 commit comments

Comments
 (0)