-
Notifications
You must be signed in to change notification settings - Fork 85
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
Map Valid Span Op names instead of default #3637
Comments
Thanks for the issue. I see the problem, are you proposing to build a smarter way of determining a default span I see that you proposed an idea of using |
@smeubank in what cases are SDKs able to construct a valid |
@iambriccardo and @jjbayer i don't know this specifics, the issue in JS where we get a ton of TXNs in sentry, we now us OTel for node, and OTel doesn't map any op for spans, so we should, we are mapping origin for now, and i would agree that the SDKs could do more to map this logic, but this would be a fix that requires upgrading So Ideally we improve this on SDKs but we don't have to rely that each SDK fixes this, and we can centrally through ingestion fix cc @AbhiPrasad and @mydea to correct me on OTel, and if there are other situations where we cannot reliably map this in the SDK there are 2 questions i am trying to answer above to be clear
|
So we try to set an IMHO, if the |
OK, I see the purpose of trying to fix the |
@phacops offered a different perspective on this: If otel spans will never have an |
Description:
Spans have a standardized schem to set specifc key value paris in the JSON. They help process the events and populate the Sentry UI with structure information. SDKs are the first line to collect telemetry and populate the span schema correctly. Then during ingest relay can attempt to make corrections and improvements which scale then to make improvement across all SDKs.
In the case of
span.op
it the highest order of categorization for the type of span it is, db or http for example. In cases where there is not a valid value default is being set by relay (i believe). This is not ideal, and there are situations where according to the span orgin, we do in face have some form of a valid more precisespan.op
.In this example we see the default span op in the UI, while in the JSON we see the
sentry.origin
isauto.db.otel.prisma
Suggestion:
Expand on the mapping in relay to set more valuable
span.op
, as with the example aboveBased on the logic for trace origin
<type>.<category>.<integration-name>.<integration-part>
develop spec, relay can map this to more specific span op values (dev spec), instead of default.Further info:
While default doesn't provide developers much value in the UI, it also can break features which rely on them. As is the case with many of our new Insights Modules.
The text was updated successfully, but these errors were encountered: