Skip to content

Update ProcessRuntimeResource to be entity aware - #20631

Merged
trask merged 5 commits into
open-telemetry:mainfrom
jack-berg:entity-aware-process-runtime
Oct 21, 2026
Merged

trask merged 5 commits into
open-telemetry:mainfrom
jack-berg:entity-aware-process-runtime

Conversation

@jack-berg

@jack-berg jack-berg commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Update the ProcessRuntimeResource provider to emit the process.runtime entity when process.runtime.name and process.runtime.version are available.

@jack-berg
jack-berg requested a review from a team as a code owner October 15, 2026 21:12
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-10-21 21:41 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused changes preserve existing attributes, include entity assertions, and have no identified blocking issues.

0 open findings

What changed in this PR

Makes ProcessRuntimeResource entity-aware while preserving existing runtime attributes.

Changes:

  • Emits a process.runtime entity when a runtime name or version is available.
  • Preserves an attribute-only resource when neither identifier is available.
  • Adds entity assertions to resource and declarative configuration tests.
File Description
instrumentation/​resources/​library/​src/​test/​java/​io/​opentelemetry/​instrumentation/​resources/​ProcessRuntimeResourceTest.java Verifies entity identity, description, schema, and attribute association.
instrumentation/​resources/​library/​src/​test/​java/​io/​opentelemetry/​instrumentation/​resources/​internal/​ResourceDeclarativeConfigTest.java Verifies entity presence through declarative configuration.
instrumentation/​resources/​library/​src/​main/​java/​io/​opentelemetry/​instrumentation/​resources/​ProcessRuntimeResource.java Creates the runtime entity with an attribute-only fallback.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@breedx-splk breedx-splk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It's exciting to see it starting to come together. 🥹

@jack-berg

jack-berg commented Oct 20, 2026 •

Copy link
Copy Markdown
Member Author

Hold off until #20632 is merged so we can rebase and incorporate the change from this comment: #20632 (comment)

Done

@jack-berg

Copy link
Copy Markdown
Member Author

Pushed cf53c2e to align with #20632

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Entity creation requires both identifiers rather than either identifier as specified.

1 open issue

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused implementation matches the clarified requirements, with coverage for entity creation, fallback behavior, and configuration integration.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@trask
trask enabled auto-merge (squash) October 21, 2026 20:51
@trask
trask merged commit 34eb14a into open-telemetry:main Oct 21, 2026
126 of 128 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants