Search by MDC fields

I have a question about Sentry and Logback MDC. I’m trying to set some fields in MDC and then search them in Sentry. But Sentry doesn’t show any results in this case.
Is searching possible with tags only? And is there any setting/property to send MDC as tags automatically (our code already has MDC.put calls everywhere and I’d like to avoid duplicating it for Sentry)?

Actually, I already asked this question on discord while post was on hold.

Bruno Garcia replyed with the following: “MDC data doesn’t get added as tags I believe. And as u said only tags are indexed. You can call sentry.setTag”

Thanks @iceberk for posting. I believe we should add this feature: https://github.com/getsentry/sentry-java/issues/1148

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.