Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/client-resources/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ class Connection implements ClientConnection {
overrideId?: number
}): Promise<any> {
return this.ctx.with(
'connection-' + data.method,
'send-request',
{},
async (ctx) => {
if (this.closed) {
Expand Down Expand Up @@ -757,9 +757,9 @@ class Connection implements ClientConnection {
return await promise.promise
}
},
undefined,
{ method: data.method },
{
span: 'inherit'
span: 'skip'
}
)
}
Expand Down
3 changes: 2 additions & 1 deletion server/middleware/src/domainFind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export class DomainFindMiddleware extends BaseMiddleware implements Middleware {
(ctx) => {
return this.adapterManager.getAdapter(domain, false).findAll(ctx, _class, query, options)
},
{ _class, query, options: this.toPrintableOptions(options) }
{ _class, query, options: this.toPrintableOptions(options) },
{ span: 'skip' }
)
}

Expand Down
5 changes: 5 additions & 0 deletions server/server/src/sessionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,11 @@ export class TSessionManager implements SessionManager {
await ws.backpressure(requestCtx)
}

if (request.method === 'ping') {
service.lastRequest = Date.now()
ws.sendPong()
return
}
await workspace.with(async (pipeline) => {
await requestCtx.with(
'🧨' + request.method,
Expand Down
Loading