# AttributeSettings

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

**Source**: https://docs.interop.io/browser/reference/javascript/insights/attributesettings/index.html

Controls the publishing of a specific attribute - an entry of an `attributeSettings` map,
wherever one appears: `TracesSettings` and span filters, `MetricPublishingSettings`,
`LogsSettings`.

## Properties

- **`mode`** (`"allow" | "drop" | "mask"`, optional)
  What to do with the attribute: `"drop"` never publishes it; `"mask"` publishes its value
  masked - a keyed hash (HMAC-SHA-256, keyed per `maskingSettings`) truncated to 16 characters
  (`reduceModality` of them for a metric) - so that the value stays out of the telemetry
  while distinct values stay distinguishable and nobody without the secret can hash their
  way back to it; `"allow"` publishes it: in a block list (the default, see
  `attributeSettingsMode`) that is the exception to a broader `"drop"` entry, in an allow
  list only the attributes with an `"allow"` or a `"mask"` entry are published.
