MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / updateSpanName

Function updateSpanName

packages/core/src/utils/spanUtils.ts:475–481  ·  view source on GitHub ↗
(span: Span, name: string)

Source from the content-addressed store, hash-verified

473 * @param name - The name to set on the span.
474 */
475export function updateSpanName(span: Span, name: string): void {
476 span.updateName(name);
477 span.setAttributes({
478 [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'custom',
479 [SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]: name,
480 });
481}

Callers 15

beforeSpanEndFunction · 0.90
updateSpanRouteNameFunction · 0.90
spanUtils.test.tsFile · 0.90
updateRootSpanRouteFunction · 0.90
wrapSentryHandleRequestFunction · 0.90
wrapServerActionFunction · 0.90
requestFunction · 0.90
updateRootSpanWithRouteFunction · 0.90
wrapServerLoaderFunction · 0.90
getMethod · 0.90
resolveWithSentryFunction · 0.90

Calls 2

updateNameMethod · 0.65
setAttributesMethod · 0.65

Tested by

no test coverage detected