-
Hello, This is more about Kanela than Kamon, but as there is no Discussion section in kanela github, I suppose I'd post here. This will be cross post on stackoverflow too. I want to setup a Loggable instrumentation in our applications in the same idea as https://aspects.jcabi.com/apidocs-0.22.6/com/jcabi/aspects/Loggable.html I arrived at a point that seems good, compile, but when running, there is no log, and the code doesn't seem to be executed. The break point in the code is never reached, but it may be normal, I'm not sure if the class are actually instantiated after an instrumentation, or if the code is copied inline in other classes. Any advice (no pun intented) on how to setup the project, or something missing, would be greatly appreciated. I suppose this is something to do with my build.sbt or my conf files, but I'm stucked for now... build.sbt
scala-common
scala-kamon-loggable
logging_poc
And here is the trace I get in console (the other instrumentation work, as we see SpanId in the MDC).
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Hey, I gave this a look and you appear to be missing a The rest of it looks solid, great work 🎉 |
Beta Was this translation helpful? Give feedback.
-
Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hey, let us know when you try out the config changes, I'm curious to see if it's working now |
Beta Was this translation helpful? Give feedback.
-
I'll try it next week, then I keep you informed :)
Thanks !
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Le jeudi, novembre 12, 2020 2:12 PM, SimunKaracic <notifications@github.com> a écrit :
… Hey, let us know when you try out the config changes, I'm curious to see if it's working now
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#883 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAKPCJM5J2XFF7O3HYDTUC3SPPNNBANCNFSM4TEY66ZQ).
|
Beta Was this translation helpful? Give feedback.
-
Ok, it works fine by adding to
Thanks a lot @ivantopo @SimunKaracic ! Would you be interested by a PR to integrate that directly into kamon-annotation ? I will still work on it for now, but at some point I think it could be useful for someone else too. |
Beta Was this translation helpful? Give feedback.
-
I mean the entire @loggable annotation / implementation
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Le lundi, novembre 23, 2020 1:51 PM, SimunKaracic <notifications@github.com> a écrit :
… Do you mean the configuration change or the entire module?
In any case, open up a PR and we'll take the discussion there!
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#883 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAKPCJMH5MPSH2QZEWKKPVLSRJLD5ANCNFSM4TEY66ZQ).
|
Beta Was this translation helpful? Give feedback.
Ok, it works fine by adding to
application.conf
Thanks a lot @ivantopo @SimunKaracic !
Would you be interested by a PR to integrate that directly into kamon-annotation ? I will still work on it for now, but at some point I think it could be useful for someone else too.