MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / api.test.ts

File api.test.ts

packages/node/test/sdk/api.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { Event } from '@sentry/core';
2import { afterEach, describe, expect, it, vi } from 'vitest';
3import { getActiveSpan, getClient, startInactiveSpan, startSpan, withActiveSpan } from '../../src';
4import { cleanupOtel, mockSdkInit } from '../helpers/mockSdkInit';

Callers

nothing calls this directly

Calls 10

cleanupOtelFunction · 0.90
mockSdkInitFunction · 0.90
startInactiveSpanFunction · 0.90
getActiveSpanFunction · 0.90
withActiveSpanFunction · 0.90
getClientFunction · 0.90
startSpanFunction · 0.90
pushMethod · 0.80
endMethod · 0.65
flushMethod · 0.65

Tested by

no test coverage detected