Wrap OTel Resource message with top-level ProcessContext message#53
Merged
felixge merged 4 commits intoopen-telemetry:mainfrom Feb 18, 2026
Merged
Conversation
**What does this PR do?** This PR updates the C/C++ reference implementation to introduce top-level `ProcessContext` message that wraps the previous `Resource` message. **Motivation:** Having a top-level `ProcessContext` message gives us more flexibility to evolve the `ProcessContext` in the future without directly depending on `Resource`, as well as to introduce attributes that are not considered part of the `Resource` and that may need to be updated from time to time. **Additional Notes:** N/A **How to test the change?** The built-in decoder and `otel_process_ctx_dump.sh` have been updated to match.
ivoanjo
added a commit
to ivoanjo/proc-level-demo
that referenced
this pull request
Feb 6, 2026
Propagating a small spec change.
5 tasks
christos68k
approved these changes
Feb 17, 2026
| } | ||
| char *ptr = encoded; | ||
|
|
||
| // ProcessContext.resource (field 1) |
Member
There was a problem hiding this comment.
Nit: Maybe if you do additional modifications in the future to address OTEP comments, add 1-2 attributes in extra_attributes to demonstrate non-resource attribute handling.
Contributor
Author
There was a problem hiding this comment.
Yeap, sounds good! I need to make a few tweaks to support the thread context which is an extra_attribute so I'll include that as well.
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.
What does this PR do?
This PR updates the C/C++ reference implementation to introduce top-level
ProcessContextmessage that wraps the previousResourcemessage.Motivation:
Having a top-level
ProcessContextmessage gives us more flexibility to evolve theProcessContextin the future without directly depending onResource, as well as to introduce attributes that are not considered part of theResourceand that may need tobe updated from time to time.
Additional Notes:
Currently every attribute provided to the library ends up inside the resource; I plan to later extend this to allow attributes to be provided that end up inside the
extra_attributes.How to test the change?
The built-in decoder and
otel_process_ctx_dump.shhave been updated to match.