MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / getActiveSpan.test.ts

File getActiveSpan.test.ts

packages/opentelemetry/test/utils/getActiveSpan.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { trace } from '@opentelemetry/api';
2import type { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';
3import { getRootSpan } from '@sentry/core';
4import { afterEach, beforeEach, describe, expect, it } from 'vitest';

Callers

nothing calls this directly

Calls 11

setupOtelFunction · 0.90
cleanupOtelFunction · 0.90
getActiveSpanFunction · 0.90
getRootSpanFunction · 0.85
forceFlushMethod · 0.80
shutdownMethod · 0.65
endMethod · 0.65
getTracerMethod · 0.45
startActiveSpanMethod · 0.45
startSpanMethod · 0.45

Tested by

no test coverage detected