Report span duration in logs #878
-
I would like to log the duration time of my Spans after I call I'm not sure if my current POC doesn't work because of my usage of spans, or because of my implementation of Reporter I do create some spans with
and others directly with
I tried to implement a CombinedReporter and to declare it in my application.conf, but I don't get any logs from Spans. More precisely,
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The code looks fine, this is most likely a sampling issue. Also, are the spans showing up when using a different reporter? |
Beta Was this translation helpful? Give feedback.
-
It works with kamon.trace.sampler = always ! |
Beta Was this translation helpful? Give feedback.
-
Yes of course it is with play
LazyLogging is just a lazy way (both for the dev and the jvm :) ) to have a logger ready
Envoyé avec la messagerie sécurisée [Proton Mail](https://proton.me/).
…------- Original Message -------
Le lundi 20 juin 2022 à 19:00, cdavid ***@***.***> a écrit :
Makes sense, thanks for the follow-up, greatly appreciated. In my digging, I assume it is related to the usage of the Play framework - were you using the Play framework by any chance or something else? Thanks again!
—
Reply to this email directly, [view it on GitHub](#878 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAKPCJNPIWKH7Z4WYXKBB3DVQCPTZANCNFSM4SYMYS2Q).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
The code looks fine, this is most likely a sampling issue.
Did you try changing
kamon.trace.sampler
toalways
, to make sure that all spans get reported?Also, are the spans showing up when using a different reporter?