Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Support use logrus to transmit trace context to log #19

Merged
merged 3 commits into from
May 19, 2021

Conversation

mrproliu
Copy link
Contributor

See SkyAPM/go2sky#104
Support the logrus log framework

@mrproliu mrproliu added enhancement New feature or request plugin labels May 14, 2021
@mrproliu mrproliu requested review from wu-sheng and arugal May 14, 2021 09:24
@mrproliu mrproliu added this to the 1.1.0 milestone May 14, 2021
@arugal
Copy link
Member

arugal commented May 15, 2021

Hi @mrproliu you also need to update the plugin summary.

logrus/README.md Outdated Show resolved Hide resolved
@wu-sheng
Copy link
Member

Hi @mrproliu you also need to update the plugin summary.

We should separate that list to trace plugins and log plugins.

@mrproliu
Copy link
Contributor Author

Hi @mrproliu you also need to update the plugin summary.

We should separate that list to trace plugins and log plugins.

Have finished, Please take a look.

@wu-sheng
Copy link
Member

Update the PR title please.

@mrproliu mrproliu changed the title Support use logrus to transmit trace id to log Support use logrus to transmit trace context to log May 18, 2021
Comment on lines +51 to +53
// Output:
// {"SW_CTX":"[,,N/A,N/A,-1]","level":"info","msg":"test1"}
// level=info msg=test2 SW_CTX="[,,N/A,N/A,-1]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the output into the doc too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But more like real data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But more like real data.

Golang will check output is the same with stdout, test failure if not the same. Should I need to add some real data to the comment?

@wu-sheng wu-sheng merged commit 91ed112 into SkyAPM:master May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request plugin
Projects
None yet
3 participants