From 78e6a0844331bb4910b8dee4799b86d880bcdc48 Mon Sep 17 00:00:00 2001 From: Maciek Grzybowski Date: Tue, 19 Jan 2021 16:32:25 +0100 Subject: [PATCH] RUMM-924 CR fix: wording Co-authored-by: Alex Costanza --- docs/rum_collection.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rum_collection.md b/docs/rum_collection.md index 9a9834b0d8..36cc8f3f3b 100644 --- a/docs/rum_collection.md +++ b/docs/rum_collection.md @@ -282,7 +282,7 @@ For more details and available options, refer to the code documentation comments ## Data scrubbing -To modify RUM event attributes before it is send to Datadog or to drop particular event entirely, use event mappers API when configuring the SDK: +To modify the attributes of a RUM event before it is sent to Datadog or to drop an event entirely, use the event mappers API when configuring the SDK: ```swift Datadog.Configuration .builderUsing(...) @@ -300,7 +300,7 @@ Datadog.Configuration } .build() ``` -Each mapper is a Swift closure with a signature of `(T) -> T?`, where `T` is a concrete RUM event type. This allows changing portions of the event before it gets send, for example to redact sensitive information in RUM Resource's `url` you may implement custom `redacted(_:) -> String` function and use it in `RUMResourceEventMapper`: +Each mapper is a Swift closure with a signature of `(T) -> T?`, where `T` is a concrete RUM event type. This allows changing portions of the event before it gets sent, for example to redact sensitive information in RUM Resource's `url` you may implement a custom `redacted(_:) -> String` function and use it in `RUMResourceEventMapper`: ```swift .setRUMResourceEventMapper { resourceEvent in var resourceEvent = resourceEvent @@ -308,9 +308,9 @@ Each mapper is a Swift closure with a signature of `(T) -> T?`, where `T` is a c return resourceEvent } ``` -Returning `nil` from the mapper will drop the event entirely (it won't be send to Datadog). +Returning `nil` from the mapper will drop the event entirely (it won't be sent to Datadog). -Only some properties on each event can be mutated: +Depending on a given event's type, only some specific properties can be mutated: | Event Type | Attribute key | Description | |-------------------|-----------------------------------|-------------------------------------------------|