Replies: 2 comments
-
Hi @AngryGami, you're right to say that what you're trying to do doesn't work as you would expect. In Android, we use something called global hub (aka scopes, with the hub -> scopes migration) mode. With the way the auto-instrumentation is structured and our use of global hub mode, you get a correct span timeline, even though the hierarchy might be incorrect. It should still be possible to do what you want, but at the moment it requires using APIs marked as internal. For example, you could create a new transaction using As you can understand this is not great currently, and requires a lot of manual work. I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi @lcian |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So there is following piece of code in
SentryKtorClientPlugin.kt
:Why if platform is android it always takes
transaction
as parent span? It makes it impossible to build span hierarchy the way I need/want. For example I have methods:and all http calls made in this code will appear "flat" - i.e. attached only to a top level transaction span instead of being nested. Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions