Skip to content

Commit

Permalink
Add http method attrbiute to otel calls in cloud apl
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski committed Dec 5, 2023
1 parent 439f947 commit c3172b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-balloons-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@saleor/app-sdk": patch
---

Added missing HTTP.METHOD attribute to APL calls
2 changes: 2 additions & 0 deletions src/APL/saleor-cloud/saleor-cloud-apl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit c3172b5

Please sign in to comment.