mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
qfix: Update traces send to opentelemetry (#9728)
+ Minimize amount of data send to traces. + Join WebSocket and RPC calls into one flat hierarchy. Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -41,16 +41,14 @@ export class ContextNameMiddleware extends BaseMiddleware implements Middleware
|
||||
}
|
||||
|
||||
domainRequest (ctx: MeasureContext, domain: OperationDomain, params: DomainParams): Promise<DomainResult> {
|
||||
return ctx.with('domain-request', { source: ctx.contextData.service, domain }, (ctx) => {
|
||||
return ctx.with(
|
||||
`${domain}-${Object.keys(params)[0]}`,
|
||||
{},
|
||||
async (ctx) => await this.provideDomainRequest(ctx, domain, params),
|
||||
{
|
||||
params
|
||||
}
|
||||
)
|
||||
})
|
||||
return ctx.with(
|
||||
`${domain}-${Object.keys(params)[0]}`,
|
||||
{},
|
||||
(ctx) => this.provideDomainRequest(ctx, domain, params),
|
||||
{
|
||||
workspace: this.context.workspace.uuid
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async tx (ctx: MeasureContext<SessionData>, txes: Tx[]): Promise<TxMiddlewareResult> {
|
||||
|
||||
Reference in New Issue
Block a user