Skip to content

Commit 4c999d3

Browse files
committed
chore: remove redundant FGA_CLIENT_REQUEST_CLIENT_ID insertions
1 parent aa4810c commit 4c999d3

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

config/clients/java/template/client-HttpRequestAttempt.java.mustache

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ public class HttpRequestAttempt<T> {
8383
addTelemetryAttribute(Attributes.HTTP_REQUEST_METHOD, request.method());
8484
addTelemetryAttribute(Attributes.USER_AGENT, configuration.getUserAgent());
8585

86-
try {
87-
if (!isNullOrWhitespace(
88-
configuration.getCredentials().getClientCredentials().getClientId())) {
89-
addTelemetryAttribute(
90-
Attributes.FGA_CLIENT_REQUEST_CLIENT_ID,
91-
configuration.getCredentials().getClientCredentials().getClientId());
92-
}
93-
} catch (Exception e) {
94-
}
95-
9686
return attemptHttpRequest(createClient(), 0, null);
9787
}
9888

config/clients/java/template/creds-OAuth2Client.java.mustache

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ public class OAuth2Client {
5959
6060
Map<Attribute, String> attributesMap = new HashMap<>();
6161
62-
try {
63-
if (!isNullOrWhitespace(
64-
config.getCredentials().getClientCredentials().getClientId())) {
65-
attributesMap.put(
66-
{{telemetryPackage}}.Attributes.FGA_CLIENT_REQUEST_CLIENT_ID,
67-
config.getCredentials().getClientCredentials().getClientId());
68-
}
69-
} catch (Exception e) {
70-
}
71-
7262
telemetry.metrics().credentialsRequest(1L, attributesMap);
7363
7464
return CompletableFuture.completedFuture(token.getToken());

0 commit comments

Comments
 (0)