Skip to content

Commit

Permalink
fill group_raw col
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanda committed Jun 20, 2023
1 parent 4a3c547 commit 51ee7b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snuba/datasets/processors/spans_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _process_base_event_values(
processed["transaction_op"] = processed["op"]

span_hash = transaction_ctx.get("hash", None)
processed["group"] = 0 if not span_hash else int(span_hash, 16)
processed["group_raw"] = 0 if not span_hash else int(span_hash, 16)
processed["segment_name"] = _unicodify(
event_dict["data"].get("transaction") or ""
)
Expand Down Expand Up @@ -297,7 +297,8 @@ def _process_span(
)
processed_span["is_segment"] = 0
processed_span["op"] = _unicodify(span_dict.get("op", ""))
processed_span["group"] = int(span_dict.get("hash", 0), 16)
processed_span["group_raw"] = int(span_dict.get("hash", "0"), 16)
processed_span["group"] = int(span_dict.get("group", "0"), 16)
processed_span["exclusive_time"] = span_dict.get("exclusive_time", 0)
processed_span["description"] = _unicodify(span_dict.get("description", ""))

Expand Down

0 comments on commit 51ee7b5

Please sign in to comment.