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

File sampler.test.ts

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

Source from the content-addressed store, hash-verified

1import { context, SpanKind, trace, TraceFlags } from '@opentelemetry/api';
2import { TraceState } from '../src/utils/TraceState';
3import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
4import { HTTP_REQUEST_METHOD } from '@sentry/conventions/attributes';

Callers

nothing calls this directly

Calls 8

cleanupOtelFunction · 0.90
generateTraceIdFunction · 0.90
generateSpanIdFunction · 0.90
getMethod · 0.65
setMethod · 0.65
activeMethod · 0.45
shouldSampleMethod · 0.45

Tested by

no test coverage detected