Skip to content

Commit 53398ed

Browse files
Add note that in Sentry Log4j2 integration, the async mode is not supported (#4271)
1 parent 522d589 commit 53398ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/includes/getting-started-config/java.log4j2.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se
2525
</Configuration>
2626
```
2727

28+
`SentryAppender` does not support Log4j2's [async mode](https://logging.apache.org/log4j/2.x/manual/async.html). The Sentry Java SDK itself is already asynchronous and does not perform any blocking operation on the calling thread.
29+
2830
### DSN Configuration
2931

3032
Note that **you need to configure your DSN** (client key) only if you wish to initialize the SDK through the log4j2 integration. If you're planning to use `Sentry.init` to provide configuration, such as by using the `beforeSend` callback, you **should not** provide the DSN in both `Sentry.init` and the appender configuration; just leave it out of the appender configuration in this case.

0 commit comments

Comments
 (0)