Unable to log to OAP from the node.js agent #10918
-
|
I'm using node.js agent 0.6.0 against OAP 9.3.0. I have an application with the agent enabled and I'm trying to push some logging data at OAP tagged and correlated so for example I could see the userID for a given login transaction. I've discovered that if I add the following: ...then with SW_AGENT_LOGGING_LEVEL = "debug" I can see that it is in fact adding my data into the logs[] array of the current span, however this data never shows up in the OAP UI or the logs or log_tags tables of the PostgreSQL database underlying my OAP instance. What am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
This is the log of span. You can see from the trace view. |
Beta Was this translation helpful? Give feedback.
Yes, node agent doesn't support application log, @PaulCarlucciStratascale what you are doing is trace logs, which is embedded in the trace data, you need to check the trace span detail to see the log