feat(integrations): Add ContextLines integration for html-embedded JS stack frames (#8699)
This release adds the ContextLines integration as an optional integration for the Browser SDKs to @sentry/integrations.
This integration adds source code from inline JavaScript of the current page's HTML (e.g. JS in <script> tags) to stack traces of captured errors.
It can't collect source code from assets referenced by your HTML (e.g. <script src="..." />).
The ContextLines integration is useful when you have inline JS code in HTML pages that can't be accessed by Sentry's backend, for example, due to a login-protected page.
import { ContextLines } from "@sentry/integrations";
fix(replay): Handle multiple clicks in a short time (#8773)
ref(replay): Skip events being added too long after initial segment (#8768)
7.62.0
Important Changes
feat(integrations): Add ContextLines integration for html-embedded JS stack frames (#8699)
This release adds the ContextLines integration as an optional integration for the Browser SDKs to @sentry/integrations.
This integration adds source code from inline JavaScript of the current page's HTML (e.g. JS in <script> tags) to stack traces of captured errors.
It can't collect source code from assets referenced by your HTML (e.g. <script src="..." />).
The ContextLines integration is useful when you have inline JS code in HTML pages that can't be accessed by Sentry's backend, for example, due to a login-protected page.
import { ContextLines } from "@sentry/integrations";
Sentry.init({
// ...
integrations: [
new ContextLines({
// The number of lines to collect before and after each stack frame's line number
// Defaults to 7
frameContextLines: 7,
}),
],
});
Other Changes
fix(nextjs): Make all wrappers isomorphic and available in all runtimes (#8743)
fix(replay): Cancel debounce when replay is too short/long (#8742)
fix(utils): dirname and basename should handle Windows paths (#8737)
ref: Hoist flush, close, and lastEventId into @sentry/core (#8731)
ref(node): Don't call JSON.stringify on prisma client when logging (#8745)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @sentry/tracing from 7.43.0 to 7.63.0.
Release notes
Sourced from
@sentry/tracing
's releases.... (truncated)
Changelog
Sourced from
@sentry/tracing
's changelog.... (truncated)
Commits
f3cd633
release: 7.63.030da5c3
Merge pull request #8788 from getsentry/prepare-release/7.63.03439d39
meta(changelog): Update changelog for 7.63.0fc7344f
fix(replay): Ensure we do not try to flush when we force stop replay (#8783)ad0cb9b
feat(node-experimental): Re-export from node (#8786)12932e0
feat(tracing): Add db connection attributes for postgres spans (#8778)8f5922d
feat(tracing): Add db connection attributes for mysql spans (#8775)fdd17e7
feat(tracing): Improve data collection for mongodb spans (#8774)0bade5d
fix(replay): Ensure we do not flush if flush took too long (#8784)da1b592
fix(replay): FixhasCheckout
handling (#8782)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show