Domain management methods
Method | Description |
|---|---|
Add a matching pattern for the domain attribute and substitute it by another string. Every time an event or metric is generated with a domain attribute, tha agent will check if it matches a regex and will apply the specified substitution. If no pattern is set, it will use the URL domain unchanged. It applies to all events and metrics containing the "domain" attribute. | |
Delete a matching pattern created with |
Examples
nrAddDomainSubstitution
nrAddDomainSubstitution(nr, "^.+\.my\.domain\.com$", "mydomain.com")nrDelDomainSubstitution
nrDelDomainSubstitution(nr, "^.+\.my\.domain\.com$")