Skip to content

Commit

Permalink
usm: http2: Modify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb committed Nov 17, 2024
1 parent 4264aee commit 76c3590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pkg/network/ebpf/c/protocols/http2/maps-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ BPF_PERCPU_ARRAY_MAP(http2_scratch_buffer, http2_event_t, 1)
/* Allocating a ctx on the heap, in order to save the ctx between the current stream. */
BPF_PERCPU_ARRAY_MAP(http2_ctx_heap, http2_ctx_t, 1)

/* This map is used for telemetry in kernelspace
* only key 0 is used
* value is a http2 telemetry object
*/
// This map is used to gather telemetry data from the eBPF programs. Key 0 is used for plaintext traffic,
// and key 1 is used for encrypted traffic.
BPF_ARRAY_MAP(http2_telemetry, http2_telemetry_t, 2)

#endif
2 changes: 1 addition & 1 deletion pkg/network/protocols/http2/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const (
eosParserTailCall = "socket__http2_eos_parser"
eventStream = "http2"

// TelemetryMap is the name of the map used to retrieve plaintext metrics from the kernel
// TelemetryMap is the name of the map that collects telemetry for plaintext and TLS encrypted HTTP/2 traffic.
TelemetryMap = "http2_telemetry"

tlsFirstFrameTailCall = "uprobe__http2_tls_handle_first_frame"
Expand Down

0 comments on commit 76c3590

Please sign in to comment.