# Collection rules when one request attribute sets multiple data sources

**URL:** <https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662>\
**Category:** Open Q&A\
**Tags:** request-attributes\
**Created:** [June 29, 2022, 5:06am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662 "2022-06-29T05:06:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![994620873](https://avatars.discourse-cdn.com/v4/letter/9/91b2a8/32.png) [@994620873](https://community.dynatrace.com/u/994620873)\
**Post date:** [June 29, 2022, 5:06am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/1 "2022-06-29T05:06:53Z")

</div>

When multiple data sources are set for one request attribute, only the first value is taken. What are the collection rules?

 ![1.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/1/812918c3b5a330961d038687a5d270da873a41ef.png)

 ![2.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/a/bad70526e3daf9f265ca8e00393d8ff3faa0312c.png)

 ![3.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/6/f613a7111be53b87dbe897d836e7414c7cae31c4.png)

 ![4.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/2/22192bc086a748b97bb5ef2ca50e63d5b5ed5438.png)

---

<div class="post-metadata">

**Author:** ![Karolina\_Linda](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolina_linda/32/36089_2.png) [@Karolina\_Linda](https://community.dynatrace.com/u/Karolina_Linda)\
**Post date:** [June 29, 2022, 6:15am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/2 "2022-06-29T06:15:28Z")

</div>

Hello&nbsp;[@994620873](https://community.dynatrace.com/user/415)!

I labeled your post with the **request attributes** label - I hope that way the experts on that topic will spot your question quicker&nbsp;🙂

Have a great day and enjoy the Dynatrace Community!

Karolina

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [June 29, 2022, 9:31am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/3 "2022-06-29T09:31:01Z")

</div>

If by collection rules you mean if only certain values are captured, then there are no extra rules.

All available values are captured and dynatrace then uses the first in the list as the value.

---

<div class="post-metadata">

**Author:** ![994620873](https://avatars.discourse-cdn.com/v4/letter/9/91b2a8/32.png) [@994620873](https://community.dynatrace.com/u/994620873)\
**Post date:** [July 1, 2022, 9:10am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/4 "2022-07-01T09:10:40Z")

</div>

Thank you for your reply.

In the environment of the screenshot, I set five data sources, select the first value in the rule, but take the value of the third data source in purepath, what is the priority rule when setting multiple data sources?

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [July 4, 2022, 8:16am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/5 "2022-07-04T08:16:52Z")

</div>

You can order the data sources with the little arrows. It goes down in priority from the top.

---

<div class="post-metadata">

**Author:** ![994620873](https://avatars.discourse-cdn.com/v4/letter/9/91b2a8/32.png) [@994620873](https://community.dynatrace.com/u/994620873)\
**Post date:** [July 4, 2022, 8:27am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/6 "2022-07-04T08:27:05Z")

</div>

Among the five data sources in the screenshot, the parameter ‘param’ has the highest priority, but the third parameter ‘web request url’ is displayed in purepath.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [July 4, 2022, 8:51am UTC](https://community.dynatrace.com/t/collection-rules-when-one-request-attribute-sets-multiple-data-sources/35662/7 "2022-07-04T08:51:20Z")

</div>

Ah sorry I now I get it.

If you look at the Request Attributes for the top service in that PurePath, it will only pick attributes from that node for the data sources.

The header in the screenshot is not on the request to the initial service but on a downstream call to an external service (Request to public network). That’s why it is not picking it up.
