# Filter using span Attributes for OTEL ingested traces

**URL:** <https://community.dynatrace.com/t/filter-using-span-attributes-for-otel-ingested-traces/41423>\
**Category:** OpenTelemetry\
**Tags:** distributed-traces-classic, opentelemetry\
**Created:** [August 29, 2023, 7:17pm UTC](https://community.dynatrace.com/t/filter-using-span-attributes-for-otel-ingested-traces/41423 "2023-08-29T19:17:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun\_kumar\_aga](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarun\_kumar\_aga](https://community.dynatrace.com/u/tarun_kumar_aga)\
**Post date:** [August 29, 2023, 7:17pm UTC](https://community.dynatrace.com/t/filter-using-span-attributes-for-otel-ingested-traces/41423/1 "2023-08-29T19:17:18Z")

</div>

Hi,

We are ingesting OTEL traces into dynatrace and want to filter using span attributes.We are not able to filter based on span attributes.Please let us know if this is possible.We are using dynatrace managed version.

Thanks,

Tarun

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [August 30, 2023, 4:08am UTC](https://community.dynatrace.com/t/filter-using-span-attributes-for-otel-ingested-traces/41423/2 "2023-08-30T04:08:48Z")

</div>

Hello,

The span attribute needs to come in as a **Request Attribute**. If you are ingesting the traces into Dynatrace by utilizing the OneAgent, you can capture the spans via the Request Attribute, but not if you are using the API.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [August 30, 2023, 11:16am UTC](https://community.dynatrace.com/t/filter-using-span-attributes-for-otel-ingested-traces/41423/3 "2023-08-30T11:16:33Z")

</div>

Check your span settings: [Span settings — Dynatrace Docs](https://www.dynatrace.com/support/help/extend-dynatrace/extend-tracing/span-settings)

You can do filtering with Request Attributes as [@Taylor-Sanchez](https://community.dynatrace.com/user/55684)&nbsp;wrote: [Request attributes in Services — Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/request-attributes)

Radek
