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

Issue while logging MDC values with Jetty 12 #8

Open
narharim opened this issue Apr 16, 2024 · 0 comments
Open

Issue while logging MDC values with Jetty 12 #8

narharim opened this issue Apr 16, 2024 · 0 comments

Comments

@narharim
Copy link

narharim commented Apr 16, 2024

We have a service A that initiates an API call to another service B. In response service B transfers zip file in chunk to service A. We have written a custom response listener which transfer chunk from service A to its client without storing it in buffer.

while doing so when ever connection is aborted from client of service A, key-value pair which we are inserting into MDC map are getting cleared out and we are unable to log those key-value.

for example
MDC.put(ABORTED, "true") is not printed in log

Attached ref code
logging.txt
handler.txt

Jetty version
Jetty 12.0.8

Java vendor/version
Amazon Corretto 17.0.9

logback-access version
2.0.2

Note: we are using kotlin as our programming language

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

No branches or pull requests

1 participant