﻿---
title: Messaging configuration options
description: Used to filter out specific messaging queues/topics/exchanges from being traced. When set, sends-to and receives-from the specified queues/topics/exchanges...
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/apm/agents/dotnet/config-messaging
products:
  - APM .NET Agent
  - APM Agent
applies_to:
  - Serverless Observability projects: Generally available
  - Elastic Stack: Generally available
  - Application Performance Monitoring Agent for .NET: Generally available
---

# Messaging configuration options
## `IgnoreMessageQueues`

<applies-to>
  - Application Performance Monitoring Agent for .NET: Generally available since 1.10
</applies-to>

Used to filter out specific messaging queues/topics/exchanges from being traced. When set, sends-to and receives-from the specified queues/topics/exchanges will be ignored.
This config accepts a comma separated string of wildcard patterns of queues/topics/exchange names which should be ignored.
The wildcard, `*`, matches zero or more characters, and matching is case insensitive by default. Prepending an element with `(?-i)` makes the matching case sensitive. Examples: `/foo/*/bar/*/baz*`, `*foo*`.

| Default        | Type   |
|----------------|--------|
| <empty string> | String |


| Environment variable name           | IConfiguration or Web.config key |
|-------------------------------------|----------------------------------|
| `ELASTIC_APM_IGNORE_MESSAGE_QUEUES` | `ElasticApm:IgnoreMessageQueues` |