-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fixes to http2 connection detection and bad gRPC paths #969
Conversation
struct { | ||
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); | ||
__type(key, int); | ||
__type(value, u8[(IO_VEC_MAX_LEN * 2)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make this twice as large as the max size we need, otherwise I couldn't convince the verifier the variable sized appends to the buffer are OK.
@@ -80,7 +80,7 @@ func (p *BPFLogger) processLogEvent(record *ringbuf.Record, _ ebpfcommon.Service | |||
err := binary.Read(bytes.NewBuffer(record.RawSample), binary.LittleEndian, &event) | |||
|
|||
if err == nil { | |||
p.log.Info(readString(event.Log[:]), "pid", event.Pid, "comm", readString(event.Comm[:])) | |||
p.log.Debug(readString(event.Log[:]), "pid", event.Pid, "comm", readString(event.Comm[:])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marctc I realized I was wrong about this, printing on Info really creates a lot of noise when I debug locally. I flipped the log to debug.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #969 +/- ##
==========================================
+ Coverage 79.48% 80.54% +1.06%
==========================================
Files 132 134 +2
Lines 10378 10591 +213
==========================================
+ Hits 8249 8531 +282
+ Misses 1608 1557 -51
+ Partials 521 503 -18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR fixes two things:
TODO:
Closes #960