Skip to content

Conversation

ojab
Copy link
Contributor

@ojab ojab commented Jul 30, 2021

On rescue Kafka::Error we're rerunning the whole method block
including @logger.push_tags(@producer.to_s), but clearing tags
only in ensure which is not run on retry, so each retry adds
another one [Producer name] to tags and, as a consequence, all
the log messages after that.

@ojab ojab force-pushed the fixup_infinite_tags branch from 107d507 to 9121246 Compare July 30, 2021 10:01
On `rescue Kafka::Error` we're rerunning the whole method block including `@logger.push_tags(@producer.to_s)`, but clearing tags only in `ensure` which is not run on `retry`
@ojab ojab force-pushed the fixup_infinite_tags branch from 9121246 to 68b8761 Compare July 30, 2021 10:04
@ojab
Copy link
Contributor Author

ojab commented Jul 30, 2021

CI failures look unrelated.

@ojab ojab marked this pull request as ready for review July 30, 2021 10:25
Copy link
Contributor

@dasch dasch left a comment

Choose a reason for hiding this comment

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

Thanks!

@dasch dasch merged commit 56b5713 into zendesk:master Aug 25, 2021
@ojab ojab deleted the fixup_infinite_tags branch August 25, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants