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

Allow to configure globalHubMode for SentryAppender from logback.xml #3779

Open
marbon87 opened this issue Oct 8, 2024 · 1 comment
Open
Assignees

Comments

@marbon87
Copy link
Contributor

marbon87 commented Oct 8, 2024

Problem Statement

We have a java swing app, that uses logback for logging and the SentryAppender from sentry-logback.
Sentry is configured in the logback.xml.

We need to enable globalHubMode, to get breadcrumbs across multiple threads. I didn't find a way to enable globalHubMode by using logback.xml. Only solution i found is to copy the content from SentryAppender#start()

Solution Brainstorm

Add the attribute globalHubMode in SentryAppender to get the possibilit of configuring globalHubMode from logback.xml

@adinauer
Copy link
Member

adinauer commented Oct 9, 2024

Hey @marbon87 we only provide a subset of config options directly via the XML config. The intended way for more complex config is to use sentry.properties (ExternalOptions) but it seems globalHubMode also isn't configurable there yet. We can add it so it's read from sentry.properties. The way this will work is shown in our logback sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Needs Discussion
Development

No branches or pull requests

2 participants