Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove correlation id support #771

Merged
merged 4 commits into from
Jan 20, 2022
Merged

Remove correlation id support #771

merged 4 commits into from
Jan 20, 2022

Conversation

Pask423
Copy link
Contributor

@Pask423 Pask423 commented Jan 4, 2022

No description provided.

@Pask423 Pask423 self-assigned this Jan 4, 2022
@Pask423 Pask423 requested a review from adamw January 4, 2022 08:08
@Pask423 Pask423 changed the title IOLocal for correlationIds Draft: IOLocal for correlationIds Jan 4, 2022
@adamw adamw changed the title Draft: IOLocal for correlationIds Remove correlation id support Jan 20, 2022
@adamw
Copy link
Member

adamw commented Jan 20, 2022

It is not possible to implement this functionality using cats-effect 3. The only way to transparently pass correlation ids would be through IOLocals. However, even if we use F-loggers using e.g. log4cats, where we have the chance to properly read the value of an IOLocal, a significant amount of logging is done in the ConnectionIO monad, where IOLocals are unavailable.

Moreover, integrating with logging in otherwise pure code is impossible - this includes e.g. http4s, which uses log4s.

@adamw adamw merged commit 2321026 into master Jan 20, 2022
@mergify mergify bot deleted the io-local-correlation branch January 20, 2022 12:14
@adamw adamw mentioned this pull request Jan 20, 2022
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.

2 participants