# Service tags for OpenTelemetry services

**URL:** <https://community.dynatrace.com/t/service-tags-for-opentelemetry-services/39150>\
**Category:** OpenTelemetry\
**Tags:** opentelemetry, tagging\
**Created:** [April 4, 2023, 2:52pm UTC](https://community.dynatrace.com/t/service-tags-for-opentelemetry-services/39150 "2023-04-04T14:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukegoyer](https://avatars.discourse-cdn.com/v4/letter/l/71e660/32.png) [@lukegoyer](https://community.dynatrace.com/u/lukegoyer)\
**Post date:** [April 4, 2023, 2:52pm UTC](https://community.dynatrace.com/t/service-tags-for-opentelemetry-services/39150/1 "2023-04-04T14:52:05Z")

</div>

I have a few services ingesting metrics and traces with OpenTelemetry.&nbsp; Is there a way I can add tags to those services based on their&nbsp; OTel resource attributes?&nbsp; I can see the attributes on the spans, but don’t see them under the service’s properties and tags.

I’m interested in using the service.version, deployment.environment, and other attributes that define ownership.

---

<div class="post-metadata">

**Author:** ![rgarzon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rgarzon1/32/11844_2.png) [@rgarzon1](https://community.dynatrace.com/u/rgarzon1)\
**Post date:** [April 5, 2023, 7:30am UTC](https://community.dynatrace.com/t/service-tags-for-opentelemetry-services/39150/2 "2023-04-05T07:30:44Z")

</div>

Hi lukegoyer

i tried what you are pointing and its correct i cant see them either when i try to get them in tags

so in a short answer could be in this moment its not posible to set the spans attributes in auto tags.

you can try set them this using the entityid

- entityselector, entityid, and next set for the entity the tags that you need (version, deployment) but this would be a long and tedious work.

when i was triyng to give you a answer i notice that maybe you can use the release aproach for define that.&nbsp;  
because you are trying to achieve this

> **[Best practices for entity ownership](https://docs.dynatrace.com/docs/deliver/ownership/ownership-classic/best-practices)**
>
> Tips and best practices to ensure that entities have adequate ownership coverage

and one of the options its with tags

one way could be that you can create a nomenclature name for the services monitored by otel

- \<environment\>-\<owner\>-\<technology\>-\<name\>
- OTEL\_RESOURCE\_ATTRIBUTES=“service.name= **\<environment\>-\<owner\>-\<technology\>-\<name\>** ,service.version=1.0.1”

and next use this in the entityselector for tagging

or in other way you can create a logic with custom api tag and set the tags manually with a single call

- [Custom tags API - POST tags — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/custom-tags/post-tags)

but i was not able to doit with spans attributes of OTel.

Regards

---

<div class="post-metadata">

**Author:** ![issam](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@issam](https://community.dynatrace.com/u/issam)\
**Post date:** [February 26, 2026, 11:32am UTC](https://community.dynatrace.com/t/service-tags-for-opentelemetry-services/39150/3 "2026-02-26T11:32:57Z")

</div>

It has been almost three years since this limitation was discussed. Is there any supported workaround today, other than encoding metadata in the service.name ?
