Skip to content

Commit 664f98a

Browse files
authored
Merge pull request #114 from openfga/fix/otel/default_http_request_method_attribute
fix(OpenTelemetry): `http.request.method` should be enabled by default
2 parents af528e6 + 5075d21 commit 664f98a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/dev/openfga/sdk/api/configuration/TelemetryConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public TelemetryConfiguration() {
2020
defaultAttributes.put(Attributes.FGA_CLIENT_REQUEST_STORE_ID, Optional.empty());
2121
defaultAttributes.put(Attributes.FGA_CLIENT_RESPONSE_MODEL_ID, Optional.empty());
2222
defaultAttributes.put(Attributes.HTTP_HOST, Optional.empty());
23+
defaultAttributes.put(Attributes.HTTP_REQUEST_METHOD, Optional.empty());
2324
defaultAttributes.put(Attributes.HTTP_REQUEST_RESEND_COUNT, Optional.empty());
2425
defaultAttributes.put(Attributes.HTTP_RESPONSE_STATUS_CODE, Optional.empty());
2526
defaultAttributes.put(Attributes.URL_FULL, Optional.empty());

0 commit comments

Comments
 (0)