|
|
@@ -520,6 +520,7 @@ int trace_enter_write(void *ctx, __u64 fd, __u16 is_tls, char *buf, __u64 size,
|
|
|
}
|
|
|
req->protocol = PROTOCOL_HTTP;
|
|
|
req->trace_id = trace_id;
|
|
|
+ // cw_bpf_debug("l7.c111 addr is --------:%d,%s",conn->sport,conn->saddr);
|
|
|
struct apm_span_context * sc = cw_get_current_tracking_span(trace_info);
|
|
|
if (sc) {
|
|
|
cw_copy_byte_arrays(sc->assumed_app_id, req->assumed_app_id, APM_ASSUMED_APP_ID_SIZE);
|
|
|
@@ -911,7 +912,7 @@ int trace_exit_read(void *ctx, __u64 id, __u32 pid, __u16 is_tls, long int ret)
|
|
|
if (e->protocol == PROTOCOL_HTTP) {
|
|
|
__u64 trace_id = req->trace_id;
|
|
|
e->trace_id = trace_id;
|
|
|
- // cw_bpf_debug("l7.c addr is --------:%d,%s,%d,%s",conn->sport,conn->saddr,conn->dport,conn->daddr);
|
|
|
+ cw_bpf_debug("l7.c addr is --------:%d,%s",conn->sport,conn->saddr);
|
|
|
e->component_sport = conn->sport;
|
|
|
e->component_dport = conn->dport;
|
|
|
__builtin_memcpy(&e->component_saddr, &conn->saddr, sizeof(e->component_saddr));
|