From 503ab253618b4ba12455372a8d46bfdb174d6bf2 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Thu, 12 Feb 2026 12:57:59 +0530 Subject: [PATCH 1/2] Updated Telemetry config --- .../com/auth0/client/mgmt/core/ClientOptions.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java b/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java index e1f7e84b0..71af77875 100644 --- a/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java +++ b/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java @@ -8,6 +8,8 @@ import java.util.Optional; import java.util.concurrent.TimeUnit; import java.util.function.Supplier; + +import com.auth0.net.Telemetry; import okhttp3.OkHttpClient; public final class ClientOptions { @@ -33,13 +35,11 @@ private ClientOptions( this.environment = environment; this.headers = new HashMap<>(); this.headers.putAll(headers); - this.headers.putAll(new HashMap() { - { - put("X-Fern-Language", "JAVA"); - put("X-Fern-SDK-Name", "com.auth0.fern:api-sdk"); - put("X-Fern-SDK-Version", "0.0.938"); - } - }); + + Telemetry telemetry = new Telemetry("auth0-java", Telemetry.class.getPackage().getImplementationVersion()); + if (telemetry.getValue() != null) { + this.headers.put("Auth0-Client", telemetry.getValue()); + } this.headerSuppliers = headerSuppliers; this.httpClient = httpClient; this.timeout = timeout; From de09963e7450369fb445266d73239408f224ec7e Mon Sep 17 00:00:00 2001 From: tanya732 Date: Thu, 12 Feb 2026 13:27:38 +0530 Subject: [PATCH 2/2] fixed spotless checks --- src/main/java/com/auth0/client/mgmt/core/ClientOptions.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java b/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java index 71af77875..255e34d0d 100644 --- a/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java +++ b/src/main/java/com/auth0/client/mgmt/core/ClientOptions.java @@ -3,13 +3,12 @@ */ package com.auth0.client.mgmt.core; +import com.auth0.net.Telemetry; import java.util.HashMap; import java.util.Map; import java.util.Optional; import java.util.concurrent.TimeUnit; import java.util.function.Supplier; - -import com.auth0.net.Telemetry; import okhttp3.OkHttpClient; public final class ClientOptions { @@ -36,7 +35,8 @@ private ClientOptions( this.headers = new HashMap<>(); this.headers.putAll(headers); - Telemetry telemetry = new Telemetry("auth0-java", Telemetry.class.getPackage().getImplementationVersion()); + Telemetry telemetry = + new Telemetry("auth0-java", Telemetry.class.getPackage().getImplementationVersion()); if (telemetry.getValue() != null) { this.headers.put("Auth0-Client", telemetry.getValue()); }