We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69e159 commit d76fe81Copy full SHA for d76fe81
src/platforms/node/common/configuration/integrations/pluggable-integrations.mdx
@@ -137,3 +137,26 @@ Sentry.init({
137
tracePropagationTargets: ["my-site-url.com"],
138
});
139
```
140
+
141
+## Frameworks
142
143
+### tRPC Middleware
144
145
+_(New in version 7.48.0)_
146
147
+The Sentry tRPC middleware helps make sure your transactions related to RPCs are well-named.
148
+Additionally, it can attach RPC input via the `attachRpcInput` option.
149
150
+```typescript
151
+import { initTRPC } from "@trpc/server";
152
+import * as Sentry from "@sentry/node";
153
154
+const t = initTRPC.context().create();
155
+const sentryMiddleware = t.middleware(
156
+ Sentry.Handlers.trpcMiddleware({
157
+ attachRpcInput: true,
158
+ })
159
+);
160
161
+const sentrifiedProcedure = t.procedure.use(sentryMiddleware);
162
+```
0 commit comments