Skip to content

test: cover OTel deployment environment mapping [golang@brian.marks/otel-deployment-environment-name][dotnet@brian.marks/otel-deployment-environment-name][ruby@brian.marks/otel-deployment-environment-name][php@brian.marks/otel-deployment-environment-name][nodejs@brian.marks/otel-deployment-environment-name][rust@brian.marks/otel-deployment-environment-name] - #7613

Draft
bm1549 wants to merge 1 commit into
mainfrom
brian.marks/otel-deployment-environment-name

Conversation

@bm1549

@bm1549 bm1549 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Motivation

Java and Python now map the stable OpenTelemetry resource attribute deployment.environment.name to the Datadog environment. The shared suite should enforce the same behavior as the remaining tracers add support.

Reference fixes:

Changes

  • Keep the existing, ungated legacy deployment.environment fallback test.
  • Add config and emitted-span cases for each attribute alone, both attribute orders, and DD_ENV precedence.
  • Check that unrelated resource attributes survive and that environment source attributes are consumed in the new cases.
  • Gate each tracer on the first release that contains its implementation.

Coordinated tracer PRs:

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on your PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or its usage is non-obvious? -> Get a review from repository maintainers.

🚀 Once your PR is reviewed and the CI green, you can merge it!

Reviewer checklist

  • Anything but tests/ or manifests/ is modified? I have approval from repository maintainers.
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?
    • Get a review from repository maintainers.

@bm1549 bm1549 added the ai-generated The pull request includes a significant amount of AI-generated code label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/dotnet.yml                                                    @DataDog/system-tests-reviewers
manifests/golang.yml                                                    @DataDog/system-tests-reviewers
manifests/java.yml                                                      @DataDog/system-tests-reviewers
manifests/nodejs.yml                                                    @DataDog/system-tests-reviewers
manifests/php.yml                                                       @DataDog/system-tests-reviewers
manifests/python.yml                                                    @DataDog/system-tests-reviewers
manifests/ruby.yml                                                      @DataDog/system-tests-reviewers
manifests/rust.yml                                                      @DataDog/system-tests-reviewers
tests/parametric/test_otel_env_vars.py                                  @DataDog/system-tests-core @DataDog/apm-sdk-capabilities

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Pipelines  Tests

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 3 Pipeline jobs failed

Testing the test | Fail if target branch is specified

View more details · View in GitHub Actions

Merge blocked: title specifies a target branch.

Testing the test | System Tests (php, dev) / Get parameters / Get parameters

View more details · View in GitHub Actions

Error response from daemon: manifest unknown while extracting Docker base image 'ghcr.io/datadog/dd-trace-php/dd-library-php:brian-marks-otel-deployment-environment-name'.

Testing the test | all-jobs-are-green

View more details · View in GitHub Actions

Check Run Failed for specified target branch and System Tests.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7265826 | Docs | View more details | Give us feedback!

@bm1549
bm1549 force-pushed the brian.marks/otel-deployment-environment-name branch from d21d78c to 7265826 Compare August 28, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated The pull request includes a significant amount of AI-generated code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant