# WithSpanDecoratorOptions

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

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

Options that can be provided when using `withSpan` as a decorator

## Properties

- **`argMapping`** (`| { [x: string]: string } | Array<string | null | undefined> | ((...args: any[]) => any)`, optional)
- **`defaultFilters`** (`SpanFilter[]`, optional)
- **`structure`** (`"sibling" | "nested"`, optional)
- **`thisMapping`** (`{ [x: string]: string } | ((that: any) => any)`, optional)

## Related types

- [SpanFilter](https://docs.interop.io/desktop/reference/javascript/insights/spanfilter/index.md)
