-
Notifications
You must be signed in to change notification settings - Fork 101
Add Linux user_events receiver #2787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jmacd
merged 35 commits into
open-telemetry:main
from
lalitb:split/user-events-receiver-only
May 13, 2026
Merged
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d9f4054
Add Linux user events receiver
lalitb ce4d596
Add user events Linux smoke test
lalitb 1cf436b
Fix user events smoke test lint
lalitb 910e9df
Validate tracefs user events decoding
lalitb 96ac562
Fix user events CI lints
lalitb e606a48
Require user events smoke validation
lalitb b833533
Address user events review comments
lalitb c6d0c7a
Skip user events smoke when unavailable
lalitb 7f26d8c
Merge branch 'main' into split/user-events-receiver-only
lalitb a2072d2
Address user events receiver review feedback
lalitb 270599b
Merge branch 'main' into split/user-events-receiver-only
lalitb 52d431f
Fix user events producer clippy output
lalitb c508e47
Merge branch 'main' into split/user-events-receiver-only
lalitb be5bce0
Merge branch 'main' into split/user-events-receiver-only
lalitb 66fab1b
Address user_events receiver review feedback
lalitb 5864525
Merge branch 'main' into split/user-events-receiver-only
lalitb e34d2d6
Fix user_events smoke test feature flag
lalitb 72e80ec
Fix config validation user_events features
lalitb cd74530
Merge branch 'main' into split/user-events-receiver-only
lalitb 7ffad52
Address user events receiver review feedback
lalitb 751a7dc
Merge branch 'main' into split/user-events-receiver-only
lalitb 5d75e6b
Document user events receiver follow-ups
lalitb 5c1a0f7
Merge branch 'main' into split/user-events-receiver-only
lalitb d98a6a6
Fix user events tracefs decoder edge cases
lalitb 682c17e
Align user_events receiver naming
lalitb 3f32098
Align user_events README title
lalitb 1d63850
Merge branch 'main' into split/user-events-receiver-only
lalitb 19eac1d
Update .github/workflows/rust-ci.yml
lalitb e01f767
Address review: pin user_events smoke test to CPU 0, add float/bool d…
lalitb 5acc25f
Document user_events debug CPU pinning
lalitb fa6c1bc
Rename user_events receiver metric set
lalitb 4a68084
Preserve dynamic tracefs bytes before decoding
lalitb 776c604
Account user_events send failures
lalitb d166a02
Merge branch 'main' into split/user-events-receiver-only
lalitb bacaf90
Merge branch 'main' into split/user-events-receiver-only
lalitb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
57 changes: 57 additions & 0 deletions
57
rust/otap-dataflow/configs/user-events-eventheader-debug.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| version: otel_dataflow/v1 | ||
| engine: {} | ||
| groups: | ||
| default: | ||
| pipelines: | ||
| main: | ||
| # Linux user_events EventHeader -> debug processor pipeline for manual | ||
| # E2E validation. | ||
| # | ||
| # Build: cargo build --features user_events-eventheader | ||
| # Run: ./target/debug/df_engine --config configs/user-events-eventheader-debug.yaml --num-cores 1 | ||
| # Produce: cargo run -p otap-df-contrib-nodes --features user_events-eventheader --example user_events_eventheader_producer | ||
| # Verify: cat /tmp/user_events_eventheader_debug.log | ||
|
|
||
| policies: | ||
| channel_capacity: | ||
| control: | ||
| node: 100 | ||
| pipeline: 100 | ||
| pdata: 128 | ||
|
|
||
| nodes: | ||
| receiver: | ||
| type: urn:otel:receiver:user_events | ||
| config: | ||
| subscriptions: | ||
| - tracepoint: "otap_df_eventheader_demo_L4K1" | ||
| format: | ||
| type: event_header | ||
| session: | ||
| per_cpu_buffer_size: 1048576 | ||
| late_registration_poll_interval: 100ms | ||
| drain: | ||
| max_records_per_turn: 128 | ||
| max_bytes_per_turn: 1048576 | ||
| max_drain_ns: 2ms | ||
| batching: | ||
| max_size: 1 | ||
| max_duration: 100ms | ||
|
|
||
| debug: | ||
| type: processor:debug | ||
| config: | ||
| verbosity: detailed | ||
| mode: signal | ||
| signals: | ||
| - logs | ||
| output: /tmp/user_events_eventheader_debug.log | ||
|
|
||
| noop: | ||
| type: exporter:noop | ||
|
|
||
| connections: | ||
| - from: receiver | ||
| to: debug | ||
| - from: debug | ||
| to: noop |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| version: otel_dataflow/v1 | ||
| engine: {} | ||
| groups: | ||
| default: | ||
| pipelines: | ||
| main: | ||
| # Linux user_events -> debug processor pipeline for manual tracefs E2E | ||
| # validation. | ||
| # | ||
| # Build: cargo build --features user_events-receiver | ||
| # Run: ./target/debug/df_engine --config configs/user-events-tracefs-debug.yaml --num-cores 1 | ||
|
lalitb marked this conversation as resolved.
|
||
| # Produce: cargo run -p otap-df-contrib-nodes --features user_events-receiver --example user_events_tracefs_producer | ||
| # Verify: cat /tmp/user_events_tracefs_debug.log | ||
|
|
||
| policies: | ||
| channel_capacity: | ||
| control: | ||
| node: 100 | ||
| pipeline: 100 | ||
| pdata: 128 | ||
|
|
||
| nodes: | ||
| receiver: | ||
| type: urn:otel:receiver:user_events | ||
| config: | ||
| subscriptions: | ||
| - tracepoint: "otap_df_tracefs_demo" | ||
| format: | ||
| type: tracefs | ||
| session: | ||
| per_cpu_buffer_size: 1048576 | ||
| late_registration_poll_interval: 100ms | ||
| drain: | ||
| max_records_per_turn: 128 | ||
| max_bytes_per_turn: 1048576 | ||
| max_drain_ns: 2ms | ||
| batching: | ||
| max_size: 1 | ||
| max_duration: 100ms | ||
|
|
||
| debug: | ||
| type: processor:debug | ||
| config: | ||
| verbosity: detailed | ||
| mode: signal | ||
| signals: | ||
| - logs | ||
| output: /tmp/user_events_tracefs_debug.log | ||
|
|
||
| noop: | ||
|
lalitb marked this conversation as resolved.
|
||
| type: exporter:noop | ||
|
|
||
| connections: | ||
| - from: receiver | ||
| to: debug | ||
| - from: debug | ||
| to: noop | ||
|
lalitb marked this conversation as resolved.
|
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // Copyright The OpenTelemetry Authors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| /// Linux user_events receiver. | ||
|
lalitb marked this conversation as resolved.
|
||
| #[cfg(all(feature = "user_events-receiver", target_os = "linux"))] | ||
| pub mod user_events_receiver; | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.