@ogcio/o11y-sdk-react
Version:
Opentelemetry standard instrumentation SDK for React based project
13 lines (12 loc) • 612 B
TypeScript
import { TransportItemType } from "@grafana/faro-web-sdk";
/**
* Cleans a string by redacting email addresses and emitting metrics for PII.
*
* If the string is URL-encoded, it will be decoded before redaction.
* Metrics are emitted for each domain found in redacted email addresses.
*
* @param {string} value - The input string to sanitize.
* @param {TransportItemType} source - The source context of the input.
* @returns {string} The cleaned string with any email addresses replaced by `[REDACTED EMAIL]`.
*/
export declare function _cleanStringPII(value: string, source: TransportItemType): string;