04 Apr 2023 03:52 PM
I have a few services ingesting metrics and traces with OpenTelemetry. Is there a way I can add tags to those services based on their OTel resource attributes? 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.
05 Apr 2023 08:30 AM
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
when i was triyng to give you a answer i notice that maybe you can use the release aproach for define that.
because you are trying to achieve this
https://www.dynatrace.com/support/help/manage/ownership/best-practices
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
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
but i was not able to doit with spans attributes of OTel.
Regards