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.
The unsubscriber function to turn off event modification, or undefined if RUM JavaScript is not available.
Safe wrapper for dynatrace.addEventModifier which reverts to a noop if RUM JavaScript is not available.