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

Method setTransactionName

packages/core/src/scope.ts:446–450  ·  view source on GitHub ↗

* Sets the transaction name on the scope so that the name of e.g. taken server route or * the page location is attached to future events. * * IMPORTANT: Calling this function does NOT change the name of the currently active * root span. If you want to change the name of the active root s

(name?: string)

Source from the content-addressed store, hash-verified

444 * occasions, such as a page navigation or when handling a new request on the server.
445 */
446 public setTransactionName(name?: string): this {
447 this._transactionName = name;
448 this._notifyScopeListeners();
449 return this;
450 }
451
452 /**
453 * Sets context data with the given name.

Callers 15

captureErrorHookFunction · 0.80
SentryRootFunction · 0.80
wrapRequestHandlerFunction · 0.80
WrappedRouteFunction · 0.80
instrumentOnRequestFunction · 0.80
enhanceHttpServerSpanFunction · 0.80
updateSpanRouteNameFunction · 0.80

Calls 1

_notifyScopeListenersMethod · 0.95

Tested by

no test coverage detected