The modifier function to modify a given (readonly) JSONEvent. It receives an optional context depending on the type of event, if available. The returned event must be a new object, otherwise modification will be ignored.
Timeout in milliseconds to wait for the RUM JavaScript to be available (default: 10000)
A promise that resolves to the unsubscriber function to turn off event modification.
A DynatraceError if the RUM JavaScript is not available within the timeout, or the namespace is overridden with an incompatible object
Async wrapper for dynatrace.addEventModifier.