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

Method setExtra

packages/core/src/scope.ts:410–414  ·  view source on GitHub ↗

* Set a single key:value extra entry that will be sent as extra data with the event.

(key: string, extra: Extra)

Source from the content-addressed store, hash-verified

408 * Set a single key:value extra entry that will be sent as extra data with the event.
409 */
410 public setExtra(key: string, extra: Extra): this {
411 this._extra = { ...this._extra, [key]: extra };
412 this._notifyScopeListeners();
413 return this;
414 }
415
416 /**
417 * Sets the fingerprint on the scope to send with the events.

Callers 15

index.test.tsFile · 0.80
handlerFunction · 0.80
scope.test.tsFile · 0.80
feedback.test.tsFile · 0.80
client.test.tsFile · 0.80
utils.test.tsFile · 0.80
setExtraFunction · 0.80
consoleHandlerFunction · 0.80
asyncSetExtraFunction · 0.80

Calls 1

_notifyScopeListenersMethod · 0.95

Tested by 1

asyncSetExtraFunction · 0.64