prisma-opentracing-middleware

1.0.0 • Public • Published

prisma-opentracing-middleware

Prisma (2) Client middleware.

Required Reading

Middlewares are an experimental feature. Read more about them here

Quick Start

Install the package using yarn:

yarn add prisma-opentracing-middleware

Code

import { PrismaClient } from "@prisma/client";
import { createTracerMiddleware } from "prisma-opentracing-middleware";
import { Tracer } from "elastic-apm-node-opentracing";

const db = new PrismaClient();

const tracer = new Tracer();

db.use(createTracerMiddleware(tracer));

Readme

Keywords

none

Package Sidebar

Install

npm i prisma-opentracing-middleware

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

206 kB

Total Files

14

Last publish

Collaborators

  • abhiaiyer