Skip to content

[🚀 Feature]: I should be allowed to set additional Tags for APM data/ Opentelemetry data in Kubernetes #2839

Open
@amardeep2006

Description

@amardeep2006

Feature and motivation

Feature : I noticed that there is no setting to set additional Tags / attributes .

What I tried: I have selenium grid deployed on kubernetes and enabled open telemetry with datadog agent. Everything is working fine except for environment name and version in apm trcaes are missing. I have tried to pass these properties via extraEnvironmentVariables to pods but it does not work.

        - name: OTEL_RESOURCE_ATTRIBUTES
          value: deployment.environment=non-prod-aws-eks,service.version=4.33

Seems like the current helm chart is preparing one java argument and it only sets service.name which is getting preference over env variable (based on SE_OTEL_SERVICE_NAME). If service.name is also provided in OTEL_RESOURCE_ATTRIBUTES, then OTEL_SERVICE_NAME takes precedence.
-Dotel.resource.attributes=service.name=my-selgrid-selenium-hub

Interestingly i was able to use OTEL_EXPORTER_OTLP_TRACES_PROTOCOL to change grpc to "http/protobuf" but seems like OTEL_RESOURCE_ATTRIBUTES is getting ignored as it has no effect .

References:

https://opentelemetry.io/docs/languages/sdk-configuration/general/#otel_resource_attributes

https://docs.datadoghq.com/opentelemetry/config/environment_variable_support/

Thanks a lot.

Usage example

I have multiple selenium grids in the organization and want to uniquely distinguish traces for each environment. At least three attributes are required for better performance tracking service.name, deployment.environment and service.version .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions