MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / setLevel

Method setLevel

packages/core/src/scope.ts:429–433  ·  view source on GitHub ↗

* Sets the level on the scope for future events.

(level: SeverityLevel)

Source from the content-addressed store, hash-verified

427 * Sets the level on the scope for future events.
428 */
429 public setLevel(level: SeverityLevel): this {
430 this._level = level;
431 this._notifyScopeListeners();
432 return this;
433 }
434
435 /**
436 * Sets the transaction name on the scope so that the name of e.g. taken server route or

Callers 5

captureToolErrorFunction · 0.80
scope.test.tsFile · 0.80
utils.test.tsFile · 0.80
captureToolErrorsFunction · 0.80
subject.jsFile · 0.80

Calls 1

_notifyScopeListenersMethod · 0.95

Tested by

no test coverage detected