From 7a67f75007d0602534bc4ccc820fdb146d331040 Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri-Benedetti Date: Wed, 19 Nov 2025 11:48:45 +0100 Subject: [PATCH 1/2] Rename attribute --- docs/reference/edot-python/setup/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/edot-python/setup/index.md b/docs/reference/edot-python/setup/index.md index 50ea1d8b..f86485cc 100644 --- a/docs/reference/edot-python/setup/index.md +++ b/docs/reference/edot-python/setup/index.md @@ -50,7 +50,7 @@ Refer to [Observability quickstart](docs-content://solutions/observability/get-s To configure EDOT Python you need to set a few `OTLP_*` environment variables that are available when running EDOT Python: -* `OTEL_RESOURCE_ATTRIBUTES`: Use this to add a `service.name` and `deployment.environment`. This makes it easier to recognize your application when reviewing data sent to Elastic. +* `OTEL_RESOURCE_ATTRIBUTES`: Use this to add a `service.name` and `deployment.environment.name`. This makes it easier to recognize your application when reviewing data sent to Elastic. The following environment variables are not required if you are sending data through a local EDOT Collector but are provided in the Elastic Observability platform onboarding: From db2ed998d31ae7fc2eb328bf7eec7761722e37b7 Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri-Benedetti Date: Wed, 19 Nov 2025 15:46:02 +0100 Subject: [PATCH 2/2] Update Dockerfiles --- examples/fastapi/Dockerfile | 2 +- examples/flask/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fastapi/Dockerfile b/examples/fastapi/Dockerfile index 7172587d..3b215afc 100644 --- a/examples/fastapi/Dockerfile +++ b/examples/fastapi/Dockerfile @@ -12,6 +12,6 @@ RUN edot-bootstrap -a install EXPOSE 5000 # Set some resource attributes to make our service recognizable -ENV OTEL_RESOURCE_ATTRIBUTES="service.name=FastAPIService,service.version=0.0.1,deployment.environment=development" +ENV OTEL_RESOURCE_ATTRIBUTES="service.name=FastAPIService,service.version=0.0.1,deployment.environment.name=development" CMD ["opentelemetry-instrument", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"] diff --git a/examples/flask/Dockerfile b/examples/flask/Dockerfile index 7b5d273c..7a0a4eca 100644 --- a/examples/flask/Dockerfile +++ b/examples/flask/Dockerfile @@ -13,6 +13,6 @@ RUN edot-bootstrap -a install EXPOSE 5000 # Set some resource attributes to make our service recognizable -ENV OTEL_RESOURCE_ATTRIBUTES="service.name=FlaskService,service.version=0.0.1,deployment.environment=development" +ENV OTEL_RESOURCE_ATTRIBUTES="service.name=FlaskService,service.version=0.0.1,deployment.environment.name=development" CMD ["opentelemetry-instrument", "flask", "run"]