# Detecting Environment Variables

**URL:** <https://community.dynatrace.com/t/detecting-environment-variables/42217>\
**Category:** Open Q&A\
**Tags:** services-classic, oneagent, hosts-classic\
**Created:** [October 20, 2023, 6:52pm UTC](https://community.dynatrace.com/t/detecting-environment-variables/42217 "2023-10-20T18:52:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arora138](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@arora138](https://community.dynatrace.com/u/arora138)\
**Post date:** [October 20, 2023, 6:52pm UTC](https://community.dynatrace.com/t/detecting-environment-variables/42217/1 "2023-10-20T18:52:04Z")

</div>

Can a Dynatrace-instrumented app report the environment variables set for the app context through Dynatrace?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [October 21, 2023, 8:49pm UTC](https://community.dynatrace.com/t/detecting-environment-variables/42217/2 "2023-10-21T20:49:18Z")

</div>

Hi,

Can you provide more details? I cannot understand your question.

Anyway, you can [define tags based on environment variables](https://docs.dynatrace.com/docs/manage/tags-and-metadata/setup/define-tags-based-on-environment-variables).

Best regards.

Best regards
