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
Trace your TRPC Applications. If you don't use OpenTelemetry yet please see The Baselime Docs
npm i @baselime/trpc-opentelemetry-middleware
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
- trpc-openetelemetry-middleware
- baselime
- about 1 year ago
- MIT
- 11 dependencies
Assets
- trpc-openetelemetry-middleware-0.1.0.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0