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

Function setThreadAttributes

packages/browser/src/profiling/utils.ts:791–794  ·  view source on GitHub ↗
(span: Span)

Source from the content-addressed store, hash-verified

789export const PROFILED_ROOT_SPANS = new WeakSet<Span>();
790
791export function setThreadAttributes(span: Span): void {
792 span.setAttribute('thread.id', PROFILER_THREAD_ID_STRING);
793 span.setAttribute('thread.name', PROFILER_THREAD_NAME);
794}

Callers 4

initializeMethod · 0.90
notifyRootSpanActiveMethod · 0.90
setupFunction · 0.90
startProfileForSpanFunction · 0.90

Calls 1

setAttributeMethod · 0.65

Tested by

no test coverage detected