-
Notifications
You must be signed in to change notification settings - Fork 100
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
Open
lalitb
wants to merge
18
commits into
open-telemetry:main
Choose a base branch
from
lalitb:split/user-events-receiver-only
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 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 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
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
59 changes: 59 additions & 0 deletions
59
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,59 @@ | ||
| 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 | ||
| overflow: | ||
| on_downstream_full: drop | ||
|
|
||
| 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,59 @@ | ||
| 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 | ||
| # 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 | ||
| overflow: | ||
| on_downstream_full: drop | ||
|
|
||
| debug: | ||
| type: processor:debug | ||
| config: | ||
| verbosity: detailed | ||
| mode: signal | ||
| signals: | ||
| - logs | ||
| output: /tmp/user_events_tracefs_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
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. | ||
| #[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.