We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f86e3 commit aba2cf1Copy full SHA for aba2cf1
1 file changed
sentry_sdk/client.py
@@ -174,11 +174,12 @@ def _serialized_v1_span_to_serialized_v2_span(
174
res["span_id"] = span["span_id"]
175
176
if "description" in span:
177
- res["name"] = span["description"]
178
- elif (
179
- "op" in span
180
- ): # fallback based on observed downstream fallback for transactions
181
- res["name"] = span["op"]
+ description = span["description"]
+
+ if description is None and "op" in span:
+ res["name"] = span["op"]
182
+ res["name"] = description
183
184
if "start_timestamp" in span:
185
start_timestamp = None
0 commit comments