Skip to content

Commit 0c743bb

Browse files
authored
feat(eap): add span.name field alias (#89254)
Sentry's new span schema is aligning with OTel, introducing `name` as the top level field by which a span's operation is identified. This effectively replaces `op` in Sentry's current data model. Add `span.name` as a secondary alias for the underlying `sentry.op` field. I considered trying to put this field behind a feature flag, but the blast radius is pretty large since this field is currently a constant that is transformed into several other constants, all of which would have to become dynamic. Adding it as a secondary alias means it shouldn't yet show up anywhere unless a user explicity tries to use it. We might start conditionally using it in the frontend behind a feature flag. Eventually, `span.op` will become the secondary alias, for backwards compatibility.
1 parent da65e5f commit 0c743bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def validate_event_id(value: str | list[str]) -> bool:
9090
internal_name="sentry.op",
9191
search_type="string",
9292
),
93+
ResolvedAttribute(
94+
public_alias="span.name",
95+
internal_name="sentry.op",
96+
search_type="string",
97+
secondary_alias=True,
98+
),
9399
ResolvedAttribute(
94100
public_alias="span.category",
95101
internal_name="sentry.category",

0 commit comments

Comments
 (0)