apm-agent-rum-js icon indicating copy to clipboard operation
apm-agent-rum-js copied to clipboard

Log info, warn in ApmService, how to save more than one level in apm service

Open wellbarea opened this issue 1 year ago • 3 comments

Hello!! I would like to know if we have the possibility to save more than one level with apmservice because it only captures errors

I would like to know if we have the possibility to save our console.logs in elastic and view them in kibana

wellbarea avatar Mar 04 '23 16:03 wellbarea

Hi @wellbarea! Thanks for your interest in our rum agent.

Unfortunately, the RUM agent doesn't support storing browser logs at the moment but only errors. We let you know once this is prioritized.

Thanks, Kyungeun

kyungeunni avatar Mar 06 '23 07:03 kyungeunni

Any news on this issue ?

gjelenc avatar Mar 06 '24 07:03 gjelenc

Also chiming in that this is something that have been heavily requested at the org I work at. We would love to have the capability of logging other levels than error, although I am not entirely sure if I think that all browser logs should be captured automatically. I wouldn't mind having it be a very explicit call to the sdk when we actually want to send logs to elastic

Meaning for example that native console.info is still ignored but apm.logger.info is captured, if that makes sense. Then it can be up to us if we want to log something to elastic, the browser console, or both

fredrik-j-lindberg avatar Mar 06 '24 12:03 fredrik-j-lindberg