mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 21:15:06 +02:00
feat: Pass tracing info with websocket (#9627)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -30,6 +30,8 @@ export interface Request<P extends any[]> {
|
||||
method: string
|
||||
params: P
|
||||
|
||||
meta?: Record<string, string | number | boolean>
|
||||
|
||||
time?: number // Server time to perform operation
|
||||
}
|
||||
|
||||
|
||||
@@ -1309,7 +1309,10 @@ export class TSessionManager implements SessionManager {
|
||||
this.createOpContext(callTx, requestCtx, pipeline, request.id, service, ws, rateLimit),
|
||||
...params
|
||||
]),
|
||||
{ ...request, user: service.getUser, socialId: service.getRawAccount().primarySocialId }
|
||||
{ ...request, user: service.getUser, socialId: service.getRawAccount().primarySocialId },
|
||||
{
|
||||
meta: request.meta
|
||||
}
|
||||
)
|
||||
})
|
||||
} catch (err: any) {
|
||||
|
||||
Reference in New Issue
Block a user