Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference/edot-python/setup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion examples/fastapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion examples/flask/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Loading