packages/server/src/adapters/standard/handler.ts
@@ -179,6 +179,7 @@ export class StandardHandler<T extends Context> {
179
response = this.codec.encodeError(error)
180
}
181
catch (cause) {
182
+ setSpanError(span, cause)
183
response = this.codec.encodeError(new ORPCError('INTERNAL_SERVER_ERROR', { cause }))
184
185
0 commit comments