From 5075d21679fb623a1c9b8beeb9a1bff7f82f327d Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Sun, 22 Sep 2024 22:21:06 -0500 Subject: [PATCH] fix(OpenTelemetry): `ttp.request.method` should be enabled by default --- .../openfga/sdk/api/configuration/TelemetryConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/dev/openfga/sdk/api/configuration/TelemetryConfiguration.java b/src/main/java/dev/openfga/sdk/api/configuration/TelemetryConfiguration.java index f8e82f7..bd422b4 100644 --- a/src/main/java/dev/openfga/sdk/api/configuration/TelemetryConfiguration.java +++ b/src/main/java/dev/openfga/sdk/api/configuration/TelemetryConfiguration.java @@ -20,6 +20,7 @@ public TelemetryConfiguration() { defaultAttributes.put(Attributes.FGA_CLIENT_REQUEST_STORE_ID, Optional.empty()); defaultAttributes.put(Attributes.FGA_CLIENT_RESPONSE_MODEL_ID, Optional.empty()); defaultAttributes.put(Attributes.HTTP_HOST, Optional.empty()); + defaultAttributes.put(Attributes.HTTP_REQUEST_METHOD, Optional.empty()); defaultAttributes.put(Attributes.HTTP_REQUEST_RESEND_COUNT, Optional.empty()); defaultAttributes.put(Attributes.HTTP_RESPONSE_STATUS_CODE, Optional.empty()); defaultAttributes.put(Attributes.URL_FULL, Optional.empty());