-
-
Notifications
You must be signed in to change notification settings - Fork 225
Improve transaction & span docs #221
Comments
Looking through https://develop.sentry.dev/sdk/unified-api/tracing, I think a lot of the issues I've encountered could've been avoided had I known that this article existed 😞 |
Another point to aling: https://develop.sentry.dev/sdk/unified-api/tracing#interaction-with-beforesend-and-event-processors In JS beforeSend isn't called but EventProcessors are. This will have different side effects in different SDKs and we've decided not to pass transactions through event processors in .NET and Java. We need to align here or at least clarify on the docs. |
/cc @brustolin |
To consider:getsentry/sentry-docs#2741 (review) |
Unfortunately that might be a case of #170, last I heard this was a bug in Gatsby. |
Is this being tracked anywhere? |
its generally true for events too, as there's an ingestion pipeline, and events are not validated right away |
https://develop.sentry.dev/sdk/event-payloads/transaction/#contextstrace |
partially covered by https://develop.sentry.dev/sdk/event-payloads/transaction/ and will be clearer when #316 is done too |
already fixed https://develop.sentry.dev/sdk/event-payloads/span/
|
it'll be also fixed by #316 when a full example with "real" data |
now its https://develop.sentry.dev/sdk/performance/ |
created separated issues for each item of the description, some of them were already fixed, some of them already existed under different issues, etc, closing it :) |
As discussed on the call with @bruno-garcia and @maciejwalkowiak, the docs on transaction & span (i.e. the performance feature) are lacking. Currently, it's really hard to implement this feature correctly as it requires a lot of guessing, reverse-engineering and asking people questions, all of which should ideally be answered by the documentation.
Issues:
contexts.trace
andspans
but not the rest of the fields. Ideally, there should be an example of a minimum valid transaction payload (with only required fields set) and a maximum valid transaction payload (with all of the fields set).contexts.trace
will get accepted by the relay but won't show up on the portal. Generally speaking, a list of common issues and solutions would be nice.contexts.trace
. I think this part should be emphasized because it makes no sense from the consumer perspective, but at the same time has critical implications on the design of the SDK.contexts.trace
, but it's not completely true. Some fields like start/end timestamps and description are included on the object itself, despite also being part of "span data". There is an example ofcontexts.trace
in the docs, but again, it's not clear whether it's exhaustive or not. What abouttags
anddata
, are they also oncontexts
?span_id
/parent_span_id
/sampled
fields and potentially some others. What is the list of fields required/allowed on spans?values
attribute (at least to my knowledge).op
must always be set tohttp.server
. Would be nice if this was documented too.The text was updated successfully, but these errors were encountered: