-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Documentation out of sync with library implementation for Span #1129
Comments
I'm sorry, but you point to two places with no contract between them. Your first link points to the payload documentation of the develop docs (i.e., SDK or endpoint implementer documentation). This is neither SDK documentation nor common user documentation for a particular feature. This is the contract when you want to talk to the relay endpoint directly, which makes the The function you point to starts a "child" at whichever If you think you need an orphan/root span constructor, I can only refer you to the tracing docs, which document the behavior that we expose in our API which particularly states (emphasis mine):
Meaning there is no reason for SDK users to produce orphan/root-spans even though the contract to the server-side endpoint would theoretically allows this. There is an ongoing initiative that targets the removal of transactions entirely from the SDKs, but it isn't the current standard across the SDKs. For this initiative it will make sense to expose SDK APIs that handle orphan spans. Let me know if and where you think this makes the most sense to add as context. |
In principle I agree, but |
That's fair. I will adapt the docs to clarify. |
Hi @nwhite-riot , thanks for raising this. I updated the docstrings for the span-creating functions. Is it clearer now why the span interface docs & the native code differ? |
Yes this is definitely helpful! Thank you :) |
The Sentry documentation for Span indicates that
parent_span_id
is optional, but the native library requires that a valid parent Span object be passed in, otherwise the Span creation fails and returnsNULL
.Even if the divergence here is due to library expectations (for example that Span is created as a child of a Transaction only), I think the library should acknowledge and explain the behavior difference.
The text was updated successfully, but these errors were encountered: