[PoC][OTEP 4719] Add processcontext enrichement#1914
[PoC][OTEP 4719] Add processcontext enrichement#1914florianl wants to merge 1 commit intoopen-telemetry:mainfrom
Conversation
Implement OTEP 4719 to enable sharing of process context information with external readers. This allows services to export resource attributes and metadata via the OTEL_CTX environment mapping without direct instrumentation. The ProcessContextDecorator enriches discovered processes by: - Locating the OTEL_CTX mapping in /proc/<pid>/maps - Reading process context information from remote memory - Merging resource attributes into service metadata This is a proof-of-concept with known limitations: - cilium/ebpf upgraded to v0.21.0 to resolve dependency conflicts - Process context proto definitions pending merge: open-telemetry/opentelemetry-proto#783 - No SDK implementations of OTEP 4719 yet available For testing, use the reference implementation at: https://github.com/open-telemetry/sig-profiling/tree/main/process-context/c-and-cpp See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1914 +/- ##
===========================================
- Coverage 69.26% 52.64% -16.63%
===========================================
Files 279 271 -8
Lines 34283 33669 -614
===========================================
- Hits 23747 17725 -6022
- Misses 9268 14479 +5211
- Partials 1268 1465 +197
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CI Supervisor
|
|
This is a great idea! |
Implement OTEP 4719 to enable sharing of process context information with external readers. This allows services to export resource attributes and metadata via the OTEL_CTX environment mapping without direct instrumentation.
The ProcessContextDecorator enriches discovered processes by:
This is a proof-of-concept with known limitations:
ProcessContextmessage from OTEP 4719 opentelemetry-proto#783For testing, use the reference implementation at:
https://github.com/open-telemetry/sig-profiling/tree/main/process-context/c-and-cpp
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md
Summary
Describe the change briefly.
Validation