Skip to content

Commit 8c4f72c

Browse files
chore(eap): Fix tests not using the correct attribute names (#92436)
This is a follow-up to #91934 which meant to change the attribute names we fetch to the ones we actually store and not some aliases in Snuba. This is needed for getsentry/snuba#7200 to be merged. --------- Co-authored-by: Shruthi <shruthilaya.jaganathan@sentry.io>
1 parent e0c28ee commit 8c4f72c

File tree

4 files changed

+211
-136
lines changed

4 files changed

+211
-136
lines changed

src/sentry/search/eap/spans/attributes.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@
262262
search_type="byte",
263263
),
264264
simple_measurements_field(
265-
"messaging.message.receive.latency", search_type="millisecond", secondary_alias=True
265+
"messaging.message.receive.latency",
266+
search_type="millisecond",
267+
secondary_alias=True,
266268
),
267269
ResolvedAttribute(
268270
public_alias="messaging.message.receive.latency",
@@ -359,7 +361,11 @@
359361
simple_sentry_field("release"),
360362
simple_sentry_field("sdk.name"),
361363
simple_sentry_field("sdk.version"),
362-
simple_sentry_field("span_id"),
364+
ResolvedAttribute(
365+
public_alias="span_id",
366+
internal_name="sentry.item_id",
367+
search_type="string",
368+
),
363369
simple_sentry_field("trace.status"),
364370
simple_sentry_field("transaction.method"),
365371
simple_sentry_field("transaction.op"),

0 commit comments

Comments
 (0)