11import type { PrismaClient , RuntimeEnvironment } from "@trigger.dev/database" ;
22import type { HostRbacController } from "@trigger.dev/rbac" ;
3- import { trail } from "agentcrumbs" ; // @crumbs
43import { customAlphabet } from "nanoid" ;
54import { MAX_API_KEY_TASK_IDENTIFIERS } from "~/consts" ;
65import { prisma } from "~/db.server" ;
@@ -11,8 +10,6 @@ import { rbac } from "~/services/rbac.server";
1110import { generateAdditionalApiKey , generateRootApiKey } from "~/utils/apiKeys" ;
1211import { controlPlaneResolver } from "~/v3/runOpsMigration/controlPlaneResolver.server" ;
1312
14- const crumb = trail ( "webapp" ) ; // @crumbs
15-
1613const 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
273263export function createApiKeyForEnv ( envType : RuntimeEnvironment [ "type" ] ) {
0 commit comments