Skip to content

Commit

Permalink
Add volatile to the Log4j 2 OpenTelemetry appender (#9749)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbisutti authored Oct 23, 2023
1 parent b378574 commit e4d471d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class OpenTelemetryAppender extends AbstractAppender {
static final String PLUGIN_NAME = "OpenTelemetry";

private final LogEventMapper<ReadOnlyStringMap> mapper;
private OpenTelemetry openTelemetry;
private volatile OpenTelemetry openTelemetry;

/**
* Installs the {@code openTelemetry} instance on any {@link OpenTelemetryAppender}s identified in
Expand Down

0 comments on commit e4d471d

Please sign in to comment.