Skip to content

trpc-openetelemetry-middleware 0.1.0

Install from the command line:
Learn more about npm packages
$ npm install @baselime/trpc-openetelemetry-middleware@0.1.0
Install via package.json:
"@baselime/trpc-openetelemetry-middleware": "0.1.0"

About this version

TRPC OpenTelemetry Middleware

Trace your TRPC Applications. If you don't use OpenTelemetry yet please see The Baselime Docs

TRPC Tracing

Installation

npm i @baselime/trpc-opentelemetry-middleware

Setup

Add the Middleware to the procedures you want to trace

// trpc.ts
import { tracing } from "@baselime/trpc-opentelemetry-middleware";

const t = initTRPC.context<typeof createTRPCContext>().create({
  ...
});

// add the middleware to all the procedures you want to trace
export const publicProcedure = t.procedure.use(tracing({ collectInput: true }))

Details


Assets

  • trpc-openetelemetry-middleware-0.1.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all