-
Notifications
You must be signed in to change notification settings - Fork 328
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
Kamon 2.6.0 double initialization on Lagom #1255
Comments
I will add that on previous kamon version (2.5.12) i didn't saw this double logging. |
Before we were logging that banner from Kanela (the javaagent) but since 2.6.0 we moved it to Kamon Kamon itself, so my guess is that your code is calling Kamon.init twice, the question is how if you are only calling init in the application loader 🤔 Is this happening when running in K8s or SBT, or both? |
Im running only on kubernetes (kubeadm deploy or minikube). On sbt run my project would not run (because of service discovery configuration). Im sure im only running it once in application loader of lagom. Maybe Lagom is calling twice for service creation? Now i don't have time to do research on this but next time i will check what i can find about it. If kamon is called twice with init it will create second monitoring or it is like singleton and second call will be ignored? |
I propably found why Kamon is double printed.
On the end of function logging is done.
And again in this function logging is called on the end. |
Yeah, that's exactly it. Fixed it on #1256 |
All in all, it's just the banner printed twice, but Kamon is not initialized twice. |
For me this is a very small issue and can be ignored. |
Hello, great job with new release.
I updated kamon to 2.6.0 and kanela to 1.0.17 and it seems to work ok, but i saw that print of kamon initialization is doubled.
Im using lagom with "newest" 1.6.7 version. Initialization is done like in documentation (in my project i have additionaly one if that is checking if kanela agent is running and then runs kamon.initWithoutAttaching if true)
When i disabled manually in lagom loader starting of Kamon.init* (commented it) then this log doesn't appear (i was trying to check if new enabled option in config maybe starts second instance or something).
I don't know if this is only double logging or kamon is started twice.
Specs:
Lagom 1.6.7
Kanela 1.0.17
Kamon 2.6.0 (added dependencies are: kamon-core, kamon-akka, kamon-akka-http, kamon-system-metrics, kamon-status-page, kamon-prometheus).
Deployment is on kubernetes.
The text was updated successfully, but these errors were encountered: