Skip to content

Commit

Permalink
Fix optimize span traceability performance #23777
Browse files Browse the repository at this point in the history
**Phenomenon and reproduction steps**

**Root cause and solution**

**Impactions**

**Test method**

**Affected branch(es)**

* main

**Checklist**

- [ ] Dependencies update required
- [ ] Common bug (similar problem in other repo)
  • Loading branch information
xiaochaoren1 committed Mar 11, 2024
1 parent 4bdc38d commit 46c6536
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/app/application/l7_flow_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,12 +867,11 @@ def set_relate(self, _ids, related_map, id_to_related_tag):
x_request_id_1_df = id_to_related_tag[_id]['x_request_id_1']
if _id_df == self._id:
continue
if self.x_request_id_0 and self.x_request_id_0 == x_request_id_0_df:
if self.x_request_id_0 and self.x_request_id_0 == x_request_id_1_df:
related_map[_id_df][self._id] = related_map[_id_df].get(
self._id, set())
related_map[_id_df][self._id].add('xrequestid')
if self.x_request_id_1 and self.x_request_id_1 == df.x_request_id_0[
i]:
if self.x_request_id_1 and self.x_request_id_1 == x_request_id_0_df:
related_map[_id_df][self._id] = related_map[_id_df].get(
self._id, set())
related_map[_id_df][self._id].add('xrequestid')
Expand Down

0 comments on commit 46c6536

Please sign in to comment.