Licence
MIT
Version
0.1.0-alpha1
Deps
3
Size
3 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
Axiom Prisma
Axiom observability middleware for Prisma
How to use
- Create an account at Axiom Cloud
- Create a dataset and an API token with ingest permission for that dataset
- Set env variables
AXIOM_DATASETandAXIOM_TOKEN - Insert the following in your code:
import logWithAxiom from './axiom';
const prisma = new PrismaClient({ log: [{ emit: 'event', level: 'query', }] });
prisma.$use(logWithAxiom);