# How to link my environment when uploading sourcemps?

**URL:** <https://discuss.elastic.co/t/how-to-link-my-environment-when-uploading-sourcemps/356374>\
**Category:** APM\
**Tags:** rum\
**Created:** [March 28, 2024, 9:07am UTC](https://discuss.elastic.co/t/how-to-link-my-environment-when-uploading-sourcemps/356374 "2024-03-28T09:07:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manthika\_Tharumudu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manthika_tharumudu/32/133075_2.png) [@Manthika\_Tharumudu](https://discuss.elastic.co/u/Manthika_Tharumudu)\
**Post date:** [March 28, 2024, 9:07am UTC](https://discuss.elastic.co/t/how-to-link-my-environment-when-uploading-sourcemps/356374/1 "2024-03-28T09:07:56Z")

</div>

How to link my environment when uploading sourcemaps?

I have few envs in my apm service. So when uploading I need to upload it to relevant env. How to do that?

I didn't find any useful information regarding this. Even in docs it doesn't mention regarding the envs.

**Kibana version** : 8x

**Elasticsearch version** : 8x

**APM Server version** : 8x

---

<div class="post-metadata">

**Author:** ![Alberto\_Delgado](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberto_delgado/32/98488_2.png) [@Alberto\_Delgado](https://discuss.elastic.co/u/Alberto_Delgado)\
**Post date:** [April 8, 2024, 4:06pm UTC](https://discuss.elastic.co/t/how-to-link-my-environment-when-uploading-sourcemps/356374/2 "2024-04-08T16:06:22Z")

</div>

Hi @Manthika_Tharumudu,

Apologies for the delay

As you may already know, [sourcemaps](https://www.elastic.co/guide/en/observability/current/apm-source-map-how-to.html#apm-source-map-rum-upload) are associated with:

- serviceName
- serviceVersion
- bundle\_filepath

There is no explicit link to the environment.

serviceName and serviceVersion will not help you to achieve what you are looking for. But I believe `bundle_filepath` might. If you use an **absolute** URL for the `bundle_filepath` then you can distinguish them based on the URL (e.g. localhost = dev, [qa.yourdomain.com](http://qa.yourdomain.com) = qa, etc)

Let me know if this helps you

Cheers,  
Alberto

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 6, 2024, 4:06pm UTC](https://discuss.elastic.co/t/how-to-link-my-environment-when-uploading-sourcemps/356374/3 "2024-05-06T16:06:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
