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

Function getTracer

packages/opentelemetry/src/trace.ts:191–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191function getTracer(): Tracer {
192 const client = getClient<Client & OpenTelemetryClient>();
193 return client?.tracer || trace.getTracer('@sentry/opentelemetry', SDK_VERSION);
194}
195
196function getSpanOptions(options: OpenTelemetrySpanContext): SpanOptions {
197 const { startTime, attributes, kind, op, links } = options;

Callers 2

_startSpanFunction · 0.85
startInactiveSpanFunction · 0.85

Calls 2

getClientFunction · 0.90
getTracerMethod · 0.45

Tested by

no test coverage detected