Define an Entity Merge algorithm (from OTEP #264)#4768
Merged
jsuereth merged 19 commits intoopen-telemetry:mainfrom Apr 20, 2026
Merged
Define an Entity Merge algorithm (from OTEP #264)#4768jsuereth merged 19 commits intoopen-telemetry:mainfrom
jsuereth merged 19 commits intoopen-telemetry:mainfrom
Conversation
dmitryax
reviewed
Dec 1, 2025
dashpole
reviewed
Dec 2, 2025
3374dd3 to
de9dd47
Compare
jsuereth
commented
Dec 15, 2025
|
This PR was marked stale. It will be closed in 14 days without additional activity. |
dmitryax
reviewed
Feb 22, 2026
Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
dyladan
approved these changes
Mar 9, 2026
dyladan
approved these changes
Mar 10, 2026
Member
dyladan
left a comment
There was a problem hiding this comment.
This has had a lot of discussion and several implementations with no complaints
dashpole
approved these changes
Mar 11, 2026
dmitryax
approved these changes
Mar 30, 2026
dyladan
reviewed
Apr 13, 2026
tigrannajaryan
approved these changes
Apr 20, 2026
hilmarf
pushed a commit
to apeirora/opentelemetry-specification
that referenced
this pull request
Apr 22, 2026
…-telemetry#4768) ## Changes Adds the merge algorithm specified in OTEP#264 to the Resource + Entity data model specification (both still in development). This merge algorithm has been used in Entity prototypes for the past year and has not seen any change. It's been adaptable enough to handle several re-architectures of SDKs through prototyping, so we're confident in pushing it forward into the specification. A few caveats: - See the note on Resource DataModel about conflicting merge algorithms. This one currently focused only on merging entities into resource when there is a known set of entities in the existing resource. - I've split the merge algorithm into two: The Entity portion about eligibility of merging and descriptive attribute merging, and then the more robust resource section. Link to prototypes: - Java: https://github.com/jsuereth/opentelemetry-java/blob/wip-entity-and-providers/sdk/common/src/main/java/io/opentelemetry/sdk/entity/internal/EntityUtil.java#L289 - TypeScript: open-telemetry/opentelemetry-js#5620 --------- Co-authored-by: Dmitry Anoshin <anoshindx@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds the merge algorithm specified in OTEP#264 to the Resource + Entity data model specification (both still in development).
This merge algorithm has been used in Entity prototypes for the past year and has not seen any change. It's been adaptable enough to handle several re-architectures of SDKs through prototyping, so we're confident in pushing it forward into the specification.
A few caveats:
Link to prototypes: