Skip to content

Commit

Permalink
fix(trace): append http method to tags error when using the Header ob…
Browse files Browse the repository at this point in the history
…ject in queries
  • Loading branch information
WHChen-Alex committed Jul 17, 2024
1 parent dee7997 commit 6e4b306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace/interceptors/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function windowFetch(options: CustomOptionsType, segments: Segmen
const tags = [
{
key: 'http.method',
value: args[1].method || 'GET',
value: args[0] instanceof Request ? args[0].method : args[1]?.method || 'GET',
},
{
key: 'url',
Expand Down

0 comments on commit 6e4b306

Please sign in to comment.