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
Copy file name to clipboardExpand all lines: docs/configuration.asciidoc
+35-3Lines changed: 35 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -428,8 +428,9 @@ NOTE: If APM Server is deployed in an origin different than the page’s origin,
428
428
* *Type:* Function
429
429
* *Default:* `null`
430
430
431
-
`transactionContextCallback` allows the agent to specify a function to be called when starting automatically instrumented transactions and spans and return
432
-
context to be set as tags. This enables the agent to capture the context when instrumented events are fired from files which do not import the RUM agent library.
431
+
`transactionContextCallback` allows the agent to specify a function to be called when starting automatically instrumented transactions and return context to
432
+
be set as tags. This enables the agent to capture data such as call stack frames and variable values from the scope when instrumented events are fired from
433
+
files which do not import the RUM agent library.
433
434
434
435
The following example illustrates an example which captures the stack trace:
435
436
@@ -448,4 +449,35 @@ var options = {
448
449
return { stack };
449
450
}
450
451
}
451
-
----
452
+
----
453
+
454
+
455
+
[function]
456
+
[[span-context-callback]]
457
+
==== `spanContextCallback`
458
+
459
+
* *Type:* Function
460
+
* *Default:* `null`
461
+
462
+
`spanContextCallback` allows the agent to specify a function to be called when starting automatically instrumented spans and return context to be set as tags.
463
+
This enables the agent to capture data such as call stack frames and variable values from the scope when instrumented events are fired from files which do
464
+
not import the RUM agent library.
465
+
466
+
The following example illustrates an example which captures the stack trace:
0 commit comments