Skip to main content

NamespaceFilter Interface

A filter used to match against the namespaces of a telemetry event

This API is provided as a beta preview and may change without notice.

To use, import via @fluidframework/app-insights-logger/beta.

For more information about our API support guarantees, see here.

Signature

export interface NamespaceFilter

Properties

PropertyAlertsModifiersTypeDescription
namespacePatternBetastringThe namespace pattern to filter telemetry events.
namespacePatternExceptionsBetaoptionalSet<string>A list of namespace patterns to explicitly exclude from the filter.

Property Details

namespacePattern

The namespace pattern to filter telemetry events.

This API is provided as a beta preview and may change without notice.

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.

This API is provided as a beta preview and may change without notice.

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.