Skip to content

Commit 5a6a191

Browse files
committed
remove crumbs
1 parent ee84c89 commit 5a6a191

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

apps/webapp/app/models/api-key.server.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { PrismaClient, RuntimeEnvironment } from "@trigger.dev/database";
22
import type { HostRbacController } from "@trigger.dev/rbac";
3-
import { trail } from "agentcrumbs"; // @crumbs
43
import { customAlphabet } from "nanoid";
54
import { MAX_API_KEY_TASK_IDENTIFIERS } from "~/consts";
65
import { prisma } from "~/db.server";
@@ -11,8 +10,6 @@ import { rbac } from "~/services/rbac.server";
1110
import { generateAdditionalApiKey, generateRootApiKey } from "~/utils/apiKeys";
1211
import { controlPlaneResolver } from "~/v3/runOpsMigration/controlPlaneResolver.server";
1312

14-
const crumb = trail("webapp"); // @crumbs
15-
1613
const apiKeyId = customAlphabet(
1714
"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
1815
12
@@ -220,12 +217,6 @@ export async function createEnvironmentApiKey(
220217
})();
221218
telemetryRecorder.recordOperation("create", "success");
222219

223-
crumb("environment API key created", {
224-
apiKeyId: apiKey.id,
225-
environmentId,
226-
presetId: apiKey.presetId,
227-
}); // @crumbs
228-
229220
return { apiKey, plaintext: generated.apiKey };
230221
}
231222

@@ -267,7 +258,6 @@ export async function revokeEnvironmentApiKey(
267258
}
268259

269260
telemetryRecorder.recordOperation("revoke", "success");
270-
crumb("environment API key revoked", { apiKeyId, environmentId }); // @crumbs
271261
}
272262

273263
export function createApiKeyForEnv(envType: RuntimeEnvironment["type"]) {

apps/webapp/app/services/apiRateLimit.server.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { tryCatch } from "@trigger.dev/core/v3";
2-
import { trail } from "agentcrumbs"; // @crumbs
32
import { env } from "~/env.server";
43
import { resolvePrivateApiKeyRateLimitScope } from "~/models/runtimeEnvironment.server";
54
import { batchStreamGrants } from "~/runEngine/concerns/batchStreamGrantsInstance.server";
@@ -8,7 +7,6 @@ import { authorizationRateLimitMiddleware } from "./authorizationRateLimitMiddle
87
import type { Duration } from "./rateLimiter.server";
98

109
const BATCH_STREAM_ITEMS_PATH = /^\/api\/v3\/batches\/([^/]+)\/items$/;
11-
const crumb = trail("webapp"); // @crumbs
1210

1311
export const apiRateLimiter = authorizationRateLimitMiddleware({
1412
redis: {
@@ -41,12 +39,6 @@ export const apiRateLimiter = authorizationRateLimitMiddleware({
4139
return;
4240
}
4341

44-
// #region @crumbs
45-
crumb("resolved private API key rate limit scope", {
46-
environmentId: scope.environmentId,
47-
});
48-
// #endregion @crumbs
49-
5042
return {
5143
config: scope.apiRateLimiterConfig,
5244
identifier: scope.environmentId,

0 commit comments

Comments
 (0)