-
Notifications
You must be signed in to change notification settings - Fork 123
Log & Trace integration #104
Comments
I have done a little research, logrus and zap are more user use and popular framework on logging, also they use the MIT License, so we could integrate these frameworks. Logrus has the log format mechanism and transmits the context data when format. such as
Zap does not have the contextual metadata mechanism, also I find an issue is still open to tracking this. after reading this, I think we could have two ways to let user integration.
Through these framework integrations, we could support add trace Id to the logging data. If we also need |
About Zap, I think you could have both. Wrapper is easier to use for new codes, but (1) could change fewer existing codes, at least only change in one place. |
Of course. We could have both. |
@mrproliu Sorry, I gave you a wrong reference. We could read 8.6.0-dev doc about context injection.
|
Ok, I think I need to expose some trace context method at |
Which PR do you mean? |
Expose trace context data, current only exposing the trace id field, It needs to submit on the |
Yes, let's go to that first. |
After the zap and logrus plugin merged. this issue could be close. |
SkyWalking is enhancing its log integration capability, so, it will accept logs collected by popular tools, such as fluentd, filebeat.
It is better go2sky could inject the trace context information as a part of log text, which could make SkyWalking backend links logs and traces together.
You could take Java agent's implementation for a reference, http://skywalking.apache.org/docs/main/v8.5.0/en/setup/service-agent/java-agent/application-toolkit-log4j-1.x/#print-skywalking-context-in-your-logs
The text was updated successfully, but these errors were encountered: