Nagging Penguin Matriarchs

    @axiomhq/axiom-prisma

    0.1.0-alpha1 • Public • Published

    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_DATASET and AXIOM_TOKEN
    • Insert the following in your code:
    import logWithAxiom from './axiom';
    const prisma = new PrismaClient({ log: [{ emit: 'event', level: 'query', }] });
    
    prisma.$use(logWithAxiom);

    Install

    npm i @axiomhq/axiom-prisma

    DownloadsWeekly Downloads

    0

    Version

    0.1.0-alpha1

    License

    MIT

    Unpacked Size

    3.36 kB

    Total Files

    4

    Last publish

    Collaborators

    • seiflotfy
    • bahlo
    • mhr3
    • lukasmalkmus
    • cdeutsch
    • kevinehosford
    • axiomneil