@@ -3,7 +3,7 @@ import type { StandardHandlerInterceptorOptions, StandardHandlerOptions, Standar
33import type { Logger } from 'pino'
44import type { LoggerContext } from './context'
55import { mapEventIterator } from '@orpc/client'
6- import { isAsyncIteratorObject , overlayProxy } from '@orpc/shared'
6+ import { isAsyncIteratorObject , ORPC_NAME , overlayProxy } from '@orpc/shared'
77import pino from 'pino'
88import { CONTEXT_LOGGER_SYMBOL , getLogger } from './context'
99
@@ -71,7 +71,7 @@ export class LoggingHandlerPlugin<T extends Context> implements StandardHandlerP
7171 const logger = (
7272 ( interceptorOptions . context as LoggerContext ) [ CONTEXT_LOGGER_SYMBOL ] ?? this . logger
7373 ) . child ( {
74- orpc : { id : this . generateId ( interceptorOptions ) } ,
74+ rpc : { id : this . generateId ( interceptorOptions ) , system : ORPC_NAME } ,
7575 } )
7676
7777 /**
@@ -165,7 +165,7 @@ export class LoggingHandlerPlugin<T extends Context> implements StandardHandlerP
165165
166166 options . clientInterceptors . unshift ( async ( { next, path, context, signal } ) => {
167167 const logger = getLogger ( context )
168- logger ?. setBindings ( { orpc : { ...logger . bindings ( ) . orpc , path } } )
168+ logger ?. setBindings ( { rpc : { ...logger . bindings ( ) . rpc , method : path . join ( '.' ) } } )
169169
170170 const output = await next ( )
171171
0 commit comments