Skip to content

Commit

Permalink
Update OTEL Resources (#82)
Browse files Browse the repository at this point in the history
* Update OTEL Resources

Discard SERVICE_NAMESPACE in favor of DEPLOYMENT_ENVIRONMENT as it more
accurately matches what the ENVRIONMENT variable used to set it.

* Update .gitignore
  • Loading branch information
fredjn authored Feb 5, 2025
1 parent afec467 commit c918e61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ coverage.xml
build/*
dist/*
sdist/*
projects/etos_suite_runner/build/*
projects/etos_suite_runner/dist/*
projects/etos_suite_runner/sdist/*
docs/api/*
docs/_rst/*
docs/_build/*
Expand Down
4 changes: 2 additions & 2 deletions projects/etos_suite_runner/src/etos_suite_runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.resources import (
DEPLOYMENT_ENVIRONMENT,
SERVICE_NAME,
SERVICE_NAMESPACE,
SERVICE_VERSION,
OTELResourceDetector,
ProcessResourceDetector,
Expand Down Expand Up @@ -60,7 +60,7 @@
{
SERVICE_NAME: "etos-suite-runner",
SERVICE_VERSION: VERSION,
SERVICE_NAMESPACE: ENVIRONMENT,
DEPLOYMENT_ENVIRONMENT: ENVIRONMENT,
},
)

Expand Down

0 comments on commit c918e61

Please sign in to comment.