payment-service — src/core/processor.ts — GlobQL IDE
Insight Lens
INSIGHT LENS
Local Topology
API Gateway ProcessPayment AuthService RiskEngine
RUNTIME CONTEXT
P95 Latency
450ms
Error Rate
2.1%
AGENT APEX
Why is RiskEngine failing?
APEX Analysis of trace #tx-992 shows timeouts in RiskEngine when payload size > 1MB. Recommend adding pagination.
Ask a question...
processor.ts
types.d.ts
src core processor.ts PaymentProcessor
32
33
34
35
36
37
38
39
40
41
42
43
import { Logger } from '@globql/logger';
import { RiskEngine } from './risk';
 
export class PaymentProcessor {
3 references Bob Smith (2d ago) 5 Incidents (Last 24h)
async processTransaction(tx: Transaction): Promise<Result> {
// Validate user limits against cache
const riskScore = await this.riskEngine.evaluate(tx); 450ms
if (riskScore > 0.85) {
Logger.warn(`High risk transaction: ${tx.id}`); PII LEAK
throw new SecurityError("Risk threshold exceeded");
}
return this.gateway.charge(tx);
}
}
riskEngine.evaluate(tx)
Method Call

Evaluates transaction risk against fraud database.

Avg Latency 120ms
P99 Latency 450ms
2 Incidents linked View in Trace Guard →
main*
0 2
Insight Lens: Connected
Ln 39, Col 42 UTF-8 TypeScript