MCPcopy
hub / github.com/prisma/prisma / normalizeSpanOptions

Function normalizeSpanOptions

packages/query-plan-executor/src/tracing/options.ts:7–12  ·  view source on GitHub ↗
(nameOrOptions: string | ExtendedSpanOptions)

Source from the content-addressed store, hash-verified

5}
6
7export function normalizeSpanOptions(nameOrOptions: string | ExtendedSpanOptions): ExtendedSpanOptions {
8 if (typeof nameOrOptions === 'string') {
9 return { name: nameOrOptions }
10 }
11 return nameOrOptions
12}

Callers 3

runInActiveSpanFunction · 0.90
options.test.tsFile · 0.90
runInChildSpanMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected