Skip to content
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

zero each kafka span before populating #1937

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Mar 5, 2025

No description provided.

@RonFed RonFed added the bug Something isn't working label Mar 5, 2025
@RonFed RonFed requested a review from a team as a code owner March 5, 2025 09:10

u32 actual_id = 1;
// Zero the span we are about to build, eBPF doesn't support memset of large structs (more than 1024 bytes)
bpf_map_update_elem(&kafka_request_storage_map, &actual_id, zero_kafka_request, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clever trick! should the update have BPF_ANY instead of 0? I don't think it would ever fail, but maybe it's worth checking if the update succeeded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to use BPF_ANY.
regarding error handling, not sure if we should drop the span if we failed to zero the memory or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants