Back to skills
SKILL.md
Orpc Sentry
ASecurityIntegrate oRPC with Sentry for error tracking and performance monitoring.
- 8 stars
- 0 votes
- 0 copies
- 2 views
- Added September 12, 2026
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add ali-master/skills --skill orpc-sentry --agent claude-codeAre you the author of Orpc Sentry?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-sentry)---
name: oRPC Sentry Integration
description: Integrate oRPC with Sentry for error tracking and performance monitoring.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# Sentry Integration
Based on the [OpenTelemetry Integration](/docs/integrations/opentelemetry).
## Installation
```sh
npm install @orpc/otel@latest
```
## Setup
```ts
import * as Sentry from '@sentry/node'
import { ORPCInstrumentation } from '@orpc/otel'
Sentry.init({
dsn: '...',
sendDefaultPii: true,
tracesSampleRate: 1.0,
openTelemetryInstrumentations: [
new ORPCInstrumentation(),
]
})
```
## Capturing Errors
Since Sentry does not yet collect [OpenTelemetry span events](https://opentelemetry.io/docs/concepts/signals/traces/#span-events), capture errors from business logic manually:
```ts
import * as Sentry from '@sentry/node'
import { os } from '@orpc/server'
export const sentryMiddleware = os.middleware(async ({ next }) => {
try {
return await next()
} catch (error) {
Sentry.captureException(error)
throw error
}
})
export const base = os.use(sentryMiddleware)
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.