-
-
Notifications
You must be signed in to change notification settings - Fork 31
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Hub.getSpan instead of Sentry.getSpan #535
Conversation
|
ISpan child = null; | ||
if (span != null) { | ||
child = span.startChild("db", <description>); | ||
} | ||
*/ | ||
protected fun MethodVisitor.visitStartSpan( | ||
attachToRoot: Boolean, |
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.
Not sure if we need this flag. But in theory we could always attach the room spans to the root and the sqlite spans to the last active span
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.
yeah, I think I'd just do that without the flag
.../src/main/kotlin/io/sentry/android/gradle/instrumentation/AbstractSpanAddingMethodVisitor.kt
Outdated
Show resolved
Hide resolved
Closing as |
馃摐 Description
Switch from
Sentry.getSpan()
toHubAdapter.getInstance().getTransaction() / getSpan()
eventually.馃挕 Motivation and Context
getsentry/sentry-java#2855
getsentry/sentry-java#1828
馃挌 How did you test it?
馃摑 Checklist
馃敭 Next steps