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, },