Commit 87cc443
committed
fix(browser): enrich graphqlClient spans for relative URLs
Per #20292, graphqlClientIntegration silently skips spans for relative
GraphQL endpoints because the fetch instrumentation only sets
`url.full` / `http.url` for absolute URLs. For relative URLs it sets
the `url` attribute instead.
Fall back to `spanAttributes['url']` so relative GraphQL endpoints
get enriched the same way as absolute ones.
Closes #202921 parent 3572788 commit 87cc443
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
0 commit comments