Skip to content

Commit

Permalink
refactor(ratelimit/client.ts): remove latency metric calculation for …
Browse files Browse the repository at this point in the history
…ratelimit
  • Loading branch information
chronark committed Jun 22, 2024
1 parent 687dc9b commit f274e88
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/api/src/pkg/ratelimit/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,7 @@ export class DurableRateLimiter implements RateLimiter {
};
for (let i = 0; i <= 3; i++) {
try {
const start = performance.now();
res = await this.agent!.ratelimit(rlRequest);
this.metrics.emit({
metric: "metric.agent.latency",
op: "ratelimit",
latency: performance.now() - start,
});

break;
} catch (e) {
Expand Down

0 comments on commit f274e88

Please sign in to comment.