Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
tracer.ts738 B
import { Span, trace } from '@opentelemetry/api' import { version } from '../../package.json' import { extractErrorFromUnknown } from '../utils/error' import { ExtendedSpanOptions, normalizeSpanOptions } from './options' export const tracer = trace.getTracer('query-plan-executor', version) export function runInActiveSpan<R>( nameOrOptions: string | ExtendedSpanOptions, fn: (span: Span) => Promise<R>, ): Promise<R> { const options = normalizeSpanOptions(nameOrOptions) return tracer.startActiveSpan(options.name, options, async (span) => { try { return await fn(span) } catch (error) { span.recordException(extractErrorFromUnknown(error)) throw error } finally { span.end() } }) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server