Skip to content

Commit

Permalink
beep
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Dec 13, 2023
1 parent b4b3ba9 commit 38d0c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Trace your TRPC Applications. If you don't use OpenTelemetry yet please see [The
## Installation

```bash
npm i @baselime/node-opentelemetry
npm i @baselime/trpc-opentelemetry-middleware
```

## Setup
Expand All @@ -19,12 +19,12 @@ Add the Middleware to the procedures you want to trace

```typescript
// trpc.ts
import { trpcTracingMiddleware } from "@baselime/node-opentelemetry";
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(trpcTracingMiddleware({ collectInput: true }))
export const publicProcedure = t.procedure.use(tracing({ collectInput: true }))
```

0 comments on commit 38d0c62

Please sign in to comment.