-
Notifications
You must be signed in to change notification settings - Fork 42
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
"AppStart" instrumentation span is never started. #560
Comments
Hi @beekhc Thank you for taking the time! I just confirmed that we're not calling What you mentioned about the time I'll loop @breedx-splk in just in case I missed something. |
I agree with what @LikeTheSalad said, and I think this is probably a bug/shortcoming....however @beekhc you didn't specify if you were attempting to use the instrumentation alone (without the agent) or with the agent? While we sure may want the instrumentation to be usable alone, our focus right now is definitely to get it working first within the context of the agent. 👍🏻 |
Thanks for the quick response. Makes sense. I'll send a pull request next week. @breedx-splk I think I am using it with the agent, but it's possible I have the terminology wrong. I'm configuring
I'm just starting to play with OTel on Android, so I'm not sure if that's the recommended way to do it, but everything other than |
I think this was resolved in #578. Please reopen if I'm mistaken. |
I'm using
ActivityLifecycleInstrumentation
, but never getting"AppStart"
events. It's possible that I'm using the instrumentation wrong, but looking through the code, it looks like nothing ever callsAppStartupTimer#start(Tracer)
. It's a public method, butstartupTimer
is a private member inActivityLifecycleInstrumentation
and there's no setter, so I don't see any way to call it manually, either.To reproduce the issue, use the
ActivityLifecycleInstrumentation
in an example app and observe that there are no"AppStart"
events. Alternatively, set a breakpoint inAppStartupTimer#start(Tracer)
and run in debug mode and observe that the function is never called.I'd be happy to contribute the PR implementing the call, but it's not obvious to me where it should be called. My best guess is that it should be called in
ActivityLifecycleInstrumentation#install
, since that's the earliest point we can get a tracer. Admittedly, that would miss out on the time spent before OTel was initialized.The text was updated successfully, but these errors were encountered: