-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
rfc(feature): Pass Native SDKs Spans to Hybrid #131
rfc(feature): Pass Native SDKs Spans to Hybrid #131
Conversation
e5988da
to
5f77cf2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like option number 3, it feels more versatile.
Co-authored-by: Dhiogo Brustolin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an intriguing topic - I added some clarifying questions, feel free to point out if/when something is not relevant for this RFC
|
||
### Pros <a name="option-3-pros"></a> | ||
|
||
1. This option works well with idle transactions and `waitForChildren` because these concepts need to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a clear advantage over the aggregate callback when all spans are finished outlined for option 2?
Option 2 looks to me the best as no span will be lost and the communication over the bridge is kept at a minimum. |
Co-authored-by: Karl Heinz Struggl <[email protected]>
actual native operations take. It could happen that one DB query from the hybrid layer gets | ||
converted into multiple native DB queries. Such information would be insightful for our users. | ||
Furthermore, there could be native-only operations that our hybrid SDKs currently don't capture. Therefore, | ||
we want to pass native spans up to the native layers so users know what's happening on the native layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a world of ingesting only spans, do we need to pass them across layers?
Would it dumping straight to the transport be enough while having them on the same trace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an excellent question. We want to establish a parent-child relationship between some spans, which works best when passing spans from native to RN because, on the backend, it's tricky if the spans don't arrive there in the same envelope. I will update the RFC to explain this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added your suggestion as option 4. Feel free to directly commit pros and cons, @bruno-garcia.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks everyone for contributing!
Co-authored-by: Karl Heinz Struggl <[email protected]>
This RFC aims to find a solution for passing auto-instrumented native SDK spans up to the hybrid SDKs.
Rendered RFC