Skip to content

Commit af24ebf

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a04b452 commit af24ebf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

modules/apm/src/main/java/org/elasticsearch/telemetry/apm/internal/APMAgentSettings.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ private static Setting<String> concreteAgentSetting(String namespace, String qua
286286
);
287287

288288
// not a setting to reduce the footprint of this change
289-
public static final List<String> TELEMETRY_TRACING_SANITIZE_FIELD_NAMES_EXCLUDES = List.of(
290-
"security.authenticator.type"
291-
);
289+
public static final List<String> TELEMETRY_TRACING_SANITIZE_FIELD_NAMES_EXCLUDES = List.of("security.authenticator.type");
292290

293291
public static final Setting<Boolean> TELEMETRY_TRACING_ENABLED_SETTING = Setting.boolSetting(
294292
TELEMETRY_SETTING_PREFIX + "tracing.enabled",

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/AuthenticatorChain.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ private void doAuthenticate(Authenticator.Context context, ActionListener<Authen
138138
}
139139

140140
private static BiConsumer<Authenticator, ActionListener<AuthenticationResult<Authentication>>> getAuthenticatorConsumer(
141-
Authenticator.Context context, Tracer tracer
141+
Authenticator.Context context,
142+
Tracer tracer
142143
) {
143144
return (authenticator, listener) -> {
144145
if (context.shouldExtractCredentials()) {
@@ -187,8 +188,10 @@ private static BiConsumer<Authenticator, ActionListener<AuthenticationResult<Aut
187188
listener.onResponse(result);
188189
}, onFailure);
189190

190-
ActionListener<AuthenticationResult<Authentication>> afterAuthResultListener = ActionListener.runAfter(authResultListener,
191-
() -> tracer.stopTrace(context));
191+
ActionListener<AuthenticationResult<Authentication>> afterAuthResultListener = ActionListener.runAfter(
192+
authResultListener,
193+
() -> tracer.stopTrace(context)
194+
);
192195

193196
tracer.startTrace(context.getThreadContext(), context, "authenticate", addUsefulMetadata(authenticator));
194197
authenticator.authenticate(context, afterAuthResultListener);

0 commit comments

Comments
 (0)