Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 13, 2023

Bumps @sentry/node from 7.57.0 to 7.69.0.

Release notes

Sourced from @​sentry/node's releases.

7.69.0

Important Changes

  • New Performance APIs
    • feat: Update span performance API names (#8971)
    • feat(core): Introduce startSpanManual (#8913)

This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are Sentry.startSpan, Sentry.startInactiveSpan, and Sentry.startSpanManual. These methods are available in the browser and node SDKs.

Sentry.startSpan wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.

// Start a span that tracks the duration of expensiveFunction
const result = Sentry.startSpan({ name: 'important function' }, () => {
  return expensiveFunction();
});
// You can also mutate the span wrapping the callback to set data or status
Sentry.startSpan({ name: 'important function' }, (span) => {
// span is undefined if performance monitoring is turned off or if
// the span was not sampled. This is done to reduce overhead.
span?.setData('version', '1.0.0');
return expensiveFunction();
});

If you don't want the span to finish when the callback returns, use Sentry.startSpanManual to control when the span is finished. This is useful for event emitters or similar.

// Start a span that tracks the duration of middleware
function middleware(_req, res, next) {
  return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => {
    res.once('finish', () => {
      span?.setHttpStatus(res.status);
      finish();
    });
    return next();
  });
}

Sentry.startSpan and Sentry.startSpanManual create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use Sentry.startInactiveSpan. This is useful for creating parallel spans that are not related to each other.

const span1 = Sentry.startInactiveSpan({ name: 'span1' });
someWork();
const span2 = Sentry.startInactiveSpan({ name: 'span2' });
</tr></table>

... (truncated)

Changelog

Sourced from @​sentry/node's changelog.

7.69.0

Important Changes

  • New Performance APIs
    • feat: Update span performance API names (#8971)
    • feat(core): Introduce startSpanManual (#8913)

This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are Sentry.startSpan, Sentry.startInactiveSpan, and Sentry.startSpanManual. These methods are available in the browser and node SDKs.

Sentry.startSpan wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.

// Start a span that tracks the duration of expensiveFunction
const result = Sentry.startSpan({ name: 'important function' }, () => {
  return expensiveFunction();
});
// You can also mutate the span wrapping the callback to set data or status
Sentry.startSpan({ name: 'important function' }, (span) => {
// span is undefined if performance monitoring is turned off or if
// the span was not sampled. This is done to reduce overhead.
span?.setData('version', '1.0.0');
return expensiveFunction();
});

If you don't want the span to finish when the callback returns, use Sentry.startSpanManual to control when the span is finished. This is useful for event emitters or similar.

// Start a span that tracks the duration of middleware
function middleware(_req, res, next) {
  return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => {
    res.once('finish', () => {
      span?.setHttpStatus(res.status);
      finish();
    });
    return next();
  });
}

Sentry.startSpan and Sentry.startSpanManual create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use Sentry.startInactiveSpan. This is useful for creating parallel spans that are not related to each other.

const span1 = Sentry.startInactiveSpan({ name: 'span1' });
someWork();
const span2 = Sentry.startInactiveSpan({ name: 'span2' });
</tr></table>

... (truncated)

Commits
  • a03940b release: 7.69.0
  • 05583e5 Merge pull request #9009 from getsentry/prepare-release/7.69.0
  • 1768ba0 meta(changelog): Update changelog for 7.69.0
  • 90ee2a4 fix(utils): Prevent iterating over VueViewModel (#8981)
  • 789e849 feat(node-experimental): Keep breadcrumbs on transaction (#8967)
  • cfc2333 chore(ts): Add TS3.8 compile test (#8955)
  • 0e23d4d fix(node-experimental): Ignore OPTIONS & HEAD requests (#9001)
  • 475c295 fix(node-otel): Refactor OTEL span reference cleanup (#9000)
  • a7f5911 ref: Avoid unnecessary hub.getScope() checks (#9008)
  • 868a3cd feat(core): Export BeforeFinishCallback type (#8999)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 <dependency name> 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/node](https://github.com/getsentry/sentry-javascript) from 7.57.0 to 7.69.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.57.0...7.69.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from supalarry as a code owner September 13, 2023 09:48
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 13, 2023
@adaptly-bot
Copy link

adaptly-bot bot commented Sep 13, 2023

⚠️  @sentry/node@7.60.0

 Breaking changes
1: feat(replay): Ensure min/max duration when flushing (#8596)

The package will no longer send replays that are less than 5 seconds long. You can configure the minimum replay duration, but it is capped at 15 seconds. If your application relies on short replays, you may need to adjust your code to accommodate this change.

@adaptly-bot
Copy link

adaptly-bot bot commented Sep 13, 2023

⚠️  @sentry/node@7.65.0

 Breaking changes
1: ref(tracing-internal): Deprecate tracePropagationTargets in BrowserTracing (#8874)

tracePropagationTargets in BrowserTracing has been deprecated. This may affect your application if you were using this feature. Please check the new implementation for any necessary changes.

2: build: Remove build-specific polyfills (#8809)

Build-specific polyfills have been removed. If your application was relying on these polyfills, you may need to add them manually to your build process.

@adaptly-bot
Copy link

adaptly-bot bot commented Sep 13, 2023

⚠️  @sentry/node@7.67.0

 Breaking changes
1: feat: Mark errors caught by the SDK as unhandled

The SDK now marks all automatically caught errors as unhandled, which may decrease reported crash-free sessions and impact your release health score. Manually captured errors (e.g., via Sentry.captureException) will still be reported as handled.

2: ref(browser): Deprecate top-level wrap function

The top-level wrap function is now deprecated. If your code uses this function, you will need to update it to avoid future compatibility issues.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 21, 2023

Superseded by #101.

@dependabot dependabot bot closed this Sep 21, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/sentry/node-7.69.0 branch September 21, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant