Skip to content

Commit 60ef0f2

Browse files
authored
fix(span): ADd replacement column for transaction.id (#78862)
- Replacing `transaction.id` and `span.id` for `transaction.span_id`. Leaving them in cause the frontend might still be using them
1 parent 3c7fbcc commit 60ef0f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sentry/utils/snuba.py

+5
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def log_snuba_info(content):
136136
"transaction": "segment_name",
137137
"transaction.id": "transaction_id",
138138
"segment.id": "segment_id",
139+
"transaction.span_id": "segment_id",
139140
"transaction.op": "transaction_op",
140141
"user": "user",
141142
"user.id": "sentry_tags[user.id]",
@@ -198,7 +199,11 @@ def log_snuba_info(content):
198199
"timestamp": "timestamp",
199200
"trace": "trace_id",
200201
"transaction": "segment_name",
202+
# `transaction.id` and `segment.id` is going to be replaced by `transaction.span_id` please do not use
203+
# transaction.id is "wrong", its pointing to segment_id to return something for the transistion, but represents the
204+
# txn event id(32 char uuid). EAP will no longer be storing this.
201205
"transaction.id": "segment_id",
206+
"transaction.span_id": "segment_id",
202207
"transaction.method": "attr_str[transaction.method]",
203208
"is_transaction": "is_segment",
204209
"segment.id": "segment_id",

0 commit comments

Comments
 (0)