From 9a5c85851a00f0af71634d90784eeaaac46f9f19 Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Tue, 5 Dec 2023 13:49:46 +0100 Subject: [PATCH] Add http method attrbiute to otel calls in cloud apl (#319) --- .changeset/angry-balloons-applaud.md | 5 +++++ src/APL/saleor-cloud/saleor-cloud-apl.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/angry-balloons-applaud.md diff --git a/.changeset/angry-balloons-applaud.md b/.changeset/angry-balloons-applaud.md new file mode 100644 index 00000000..9a673dd8 --- /dev/null +++ b/.changeset/angry-balloons-applaud.md @@ -0,0 +1,5 @@ +--- +"@saleor/app-sdk": patch +--- + +Added missing HTTP.METHOD attribute to APL calls diff --git a/src/APL/saleor-cloud/saleor-cloud-apl.ts b/src/APL/saleor-cloud/saleor-cloud-apl.ts index 1592398f..fb3a8fad 100644 --- a/src/APL/saleor-cloud/saleor-cloud-apl.ts +++ b/src/APL/saleor-cloud/saleor-cloud-apl.ts @@ -140,6 +140,7 @@ export class SaleorCloudAPL implements APL { attributes: { saleorApiUrl, [SemanticAttributes.PEER_SERVICE]: OTEL_APL_SERVICE_NAME, + [SemanticAttributes.HTTP_METHOD]: "GET", }, kind: SpanKind.CLIENT, }, @@ -268,6 +269,7 @@ export class SaleorCloudAPL implements APL { saleorApiUrl: authData.saleorApiUrl, appId: authData.appId, [SemanticAttributes.PEER_SERVICE]: OTEL_APL_SERVICE_NAME, + [SemanticAttributes.HTTP_METHOD]: "POST", }, kind: SpanKind.CLIENT, },