NamespaceFilter Interface
A filter used to match against the namespaces of a telemetry event
To use, import via @fluidframework/app-insights-logger/beta
.
For more information about our API support guarantees, see here.
Signature
export interface NamespaceFilter
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
namespacePattern | Beta |
string | The namespace pattern to filter telemetry events. | |
namespacePatternExceptions | Beta |
optional |
Set<string> | A list of namespace patterns to explicitly exclude from the filter. |
Property Details
namespacePattern
The namespace pattern to filter telemetry events.
For more information about our API support guarantees, see here.
Signature
namespacePattern: string;
Type: string
Remarks
This will match namespaces that start with the given string. It is not a Regex pattern.
Example
"perf:latency" will match any namespace starting with "perf:latency"
namespacePatternExceptions
A list of namespace patterns to explicitly exclude from the filter.
For more information about our API support guarantees, see here.
Signature
namespacePatternExceptions?: Set<string>;
Type: Set<string>
Example
If you have a namespacePattern of "perf:latency" but want to exclude events from "perf:latency:ops", you would add "perf:latency:ops" to this list.