# SpanFilter

**Kind**: interface | **Module**: [Insights](https://docs.interop.io/desktop/reference/javascript/insights/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/insights/spanfilter/index.html

Filter entry that can match a span to control its settings.

## Properties

- **`context`** (`{ [key: string]: string | number | boolean; }`, optional)
  Specifies the filtering context values used for matching spans.
  Spans match only if all the values in this object match
  the context values returned by the context getter callback
  and the filteringContext config property.

  Start strings with "#" for case-insensitive regex match.
- **`injectOTELHeaders`** (`boolean`, optional)
- **`source`** (`string`, optional)
  Specifies the source string used for matching spans.
  Spans match only if their source equals this value, or
  if their source starts with '<source>.' (e.g. my.api.foo
  starts with my.api).

  Start string with "#" for case-insensitive regex match.
