Skip to content

Commit

Permalink
fix: l7_capture_network_types default value
Browse files Browse the repository at this point in the history
  • Loading branch information
rvql committed Nov 15, 2024
1 parent 898d085 commit b8239ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agent/src/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@ impl Default for FlowLogFilters {
fn default() -> Self {
Self {
l4_capture_network_types: vec![0],
l7_capture_network_types: vec![],
l7_capture_network_types: vec![0],
l4_ignored_observation_points: vec![],
l7_ignored_observation_points: vec![],
}
Expand Down
2 changes: 1 addition & 1 deletion agent/src/ebpf/user/profile/stringifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ char *resolve_and_gen_stack_trace_str(struct bpf_tracer *t,
len += strlen(uprobe_str) + 1;
}

if (v->intpstack != 0) {
if (v->intpstack > 0) {
i_trace_str = folded_stack_trace_string(t, v->intpstack, v->tgid, custom_stack_map_name, h, new_cache, info_p, v->timestamp, ignore_libs, true);
if (i_trace_str != NULL) {
len += strlen(i_trace_str) + strlen(INCOMPLETE_PYTHON_STACK) + 2;
Expand Down
2 changes: 1 addition & 1 deletion server/agent_config/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5271,7 +5271,7 @@ outputs:
# TODO
# upgrade_from: l7_log_store_tap_types
# TODO: 候选项需要特殊处理
l7_capture_network_types: []
l7_capture_network_types: [0]
# type: int
# name:
# en: Ignored Observation Points for L4
Expand Down

0 comments on commit b8239ea

Please sign in to comment.