Skip to content

fix(perf-issues): Accept sanitized span descriptions #46187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 22, 2023

Conversation

gggritso
Copy link
Member

As of getsentry/sentry-javascript#7206 the Node.js SDK will not append search parameters to the span's description or the URL. Instead, the search parameters will be in the http.query key. e.g.,

{
  "span_id": "a",
  "op": "http.client",
  "description": "GET /service",
  "http.query": "id=223"
}

This improves our URL handling to anticipate this case on the backend.

The URL in the data is never different than the one in the description!
Clarify, and add handling for cases where span data has `http.query`
information.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 22, 2023
@gggritso gggritso marked this pull request as ready for review March 22, 2023 15:37
@gggritso gggritso requested a review from a team as a code owner March 22, 2023 15:37
gggritso added a commit that referenced this pull request Mar 22, 2023
This is an FE aspect of #46187. For N+1 API Call performance issues, we
need to parse the URLs and extract the query parameters. With newer SDK
versions, the query parameters might be in a separate key in span data
called `http.query`, rather than being appended to the description or
the `url` key in span data.
@gggritso gggritso merged commit aa52a5c into master Mar 22, 2023
@gggritso gggritso deleted the fix/ggg/accommodate-span-url-sanitization branch March 22, 2023 19:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants