Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment.environment key is received empty from hydra in opentelemetry collector #3782

Open
3 of 5 tasks
diecgia opened this issue Jun 20, 2024 · 0 comments
Open
3 of 5 tasks
Labels
bug Something is not working.

Comments

@diecgia
Copy link

diecgia commented Jun 20, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

After upgrading hydra to version 2.2.0, we receive in our opentelemetry collector the deployment.environment key as empty. We have set in hydra the following env vars for otel config:

TRACING_SERVICE_NAME="hydra"
TRACING_PROVIDER="otel"
TRACING_PROVIDERS_OTLP_INSECURE=true
TRACING_PROVIDERS_OTLP_SAMPLING_SAMPLING_RATIO=0.4
TRACING_PROVIDERS_OTLP_SERVER_URL="otel:4318"
OTEL_RESOURCE_ATTRIBUTES="service.name=hydra,deployment.environment=stg,service.version=2.2.0" 

In the collector, we receive the attributes as follows:
Resource attributes:
-> deployment.environment: Str()
-> service.name: Str(hydra)
-> service.version: Str(2.2.0)

Reproducing the bug

In hydra v2.2.0, set the following env vars:

TRACING_SERVICE_NAME="hydra"
TRACING_PROVIDER="otel"
TRACING_PROVIDERS_OTLP_INSECURE=true
TRACING_PROVIDERS_OTLP_SAMPLING_SAMPLING_RATIO=0.4
TRACING_PROVIDERS_OTLP_SERVER_URL="otel:4318"
OTEL_RESOURCE_ATTRIBUTES="service.name=hydra,deployment.environment=stg,service.version=2.2.0" 

Relevant log output

No response

Relevant configuration

No response

Version

2.2.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker

Additional Context

No response

@diecgia diecgia added the bug Something is not working. label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant