Skip to content

Add log fields to queue jobs#375

Merged
carlosms merged 1 commit intosrc-d:masterfrom
carlosms:i-357
Jan 4, 2019
Merged

Add log fields to queue jobs#375
carlosms merged 1 commit intosrc-d:masterfrom
carlosms:i-357

Conversation

@carlosms
Copy link
Copy Markdown
Contributor

@carlosms carlosms commented Dec 3, 2018

Fix #357.

WIP because it depends on src-d/go-log#9.

I checked that if an old queue job without the field in this PR is dequeued and deserialized, it works without a problem.
I changed the fields added by the github provider because pr-number does not really help to identify, and adds noise. I also added a github. prefix to help organize log fields a bit better, the same way we have grpc.start_time, grpc.code.

Copy link
Copy Markdown
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

The proposed change in src-d/go-log#9 was not accepted, so this PR should be reviewd, shouldn't it?

@carlosms
Copy link
Copy Markdown
Contributor Author

Yes, I created #427 to make the needed changes.

Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms
Copy link
Copy Markdown
Contributor Author

Pushed again using the changes from #439.

Copy link
Copy Markdown
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

Lgtm

@carlosms carlosms merged commit d29e69d into src-d:master Jan 4, 2019
@carlosms carlosms deleted the i-357 branch January 4, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log fields are lost when events are sent to the queue

3 participants