-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix(otlp): Add attribute aliases for span name
and kind
#93725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(otlp): Add attribute aliases for span name
and kind
#93725
Conversation
These fields are top-level fields in span V2, and we want users to be able to search for them directly.
@shruthilayaj I removed that reverse alias, since I needed it to make the |
name
, kind
, and status
name
and kind
We already have `span.status`, so let's do one thing at a time here.
Also, it seems like maybe these should be |
I think this should be safe to remove - it was temporarily needed while Pierre cleaned up the alias map on the EAP side (which has since been done). There were test failures last time, so if tests pass, you should be good. |
@shruthilayaj @Zylphrex should these be called |
That depends on how you'd like them to be exposed in the UI. Though I do think Also, does the OTLP span schema have any opinions how they should be exposed? |
@Zylphrex I don't think OTel has any opinions on how the telemetry platforms do things, OTel only cares about sending the data! My opinion is that people should be able to recognize the data they sent and be able to guess how to find it, but IMO |
If that's the case, then prefixing with |
`kind`, `name`, and `status` are top-level fields in the Span V2 schema, and in the OTLP span schema. We expect users to be able to search for these fields in Explore with syntax like `"name:GET*"`. In EAP, these fields are stored as `sentry.kind` and `sentry.name` respectively. This PR adds the aliases, with a `span.` prefix to disambiguate. `span.status` is already aliased to `sentry.status` N.B. This PR also removes the reverse alias of from `sentry.name` to `span.description` from `SPANS_INTERNAL_TO_PUBLIC_ALIAS_MAPPINGS`! N.B.2. This is not feature-flagged but `name`, `kind`, and `status` aren't in the autocomplete for span searches, and _that_ will be feature-flagged.
kind
,name
, andstatus
are top-level fields in the Span V2 schema, and in the OTLP span schema. We expect users to be able to search for these fields in Explore with syntax like"name:GET*"
. In EAP, these fields are stored assentry.kind
andsentry.name
respectively. This PR adds the aliases, with aspan.
prefix to disambiguate.span.status
is already aliased tosentry.status
N.B. This PR also removes the reverse alias of from
sentry.name
tospan.description
fromSPANS_INTERNAL_TO_PUBLIC_ALIAS_MAPPINGS
!N.B.2. This is not feature-flagged but
name
,kind
, andstatus
aren't in the autocomplete for span searches, and that will be feature-flagged.