Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.03 KB

PII.md

File metadata and controls

22 lines (17 loc) · 1.03 KB

Personally Identifiable Information

In certain situations, metadata collected by our instrumentation may include Personally Identifiable Information (PII). We'd advise that you pay attention to the following cases:

  • any network operation, where PII might be present in the URL (e.g. an authentication token in query parameters). Notice that the auto-instrumentations do not capture or report any data from the payload of the request (i.e. the POST body), apart from its size
  • any user interaction (e.g. a click), where a target element might contain PII of information in the ID of the dom element interacted.

To redact PII you can pass a sanitizer as exporter.onAttributesSerializing config option when initializing

SplunkRum.init({
  // ...
  exporter: {
    onAttributesSerializing: (attributes) => ({
      ...attributes,
      'http.url': /secret\=/.test(attributes['http.url']) ? '[redacted]' : attributes['http.url'],
    }),
  },
});

If needed the entire Span is available as an optional second argument of the sanitizer.