Implementa o MVP do Adaptador de Planilhas no Elo Pro.
O módulo usa a identidade Supabase, isola cada workspace e registra storage, TTL, runner e biblioteca XLSX como decisões ainda abertas. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
6e23f1533b
144 files changed
+19060
No files matched your search
@@ -0,0 +1,22 @@
|
||||
export { scrubSentryEvent } from "./scrub";
|
||||
|
||||
export function captureAdapterException(error: unknown, tags: Record<string, string>): void {
|
||||
if (!process.env.SENTRY_DSN && !process.env.NEXT_PUBLIC_SENTRY_DSN) return;
|
||||
void import("@sentry/nextjs").then((Sentry) => {
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setTag("module", "spreadsheet-adapter");
|
||||
for (const [key, value] of Object.entries(tags)) scope.setTag(key, value.slice(0, 120));
|
||||
Sentry.captureException(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function sentryInitOptions(dsn: string | undefined) {
|
||||
if (!dsn) return null;
|
||||
return {
|
||||
dsn,
|
||||
environment: process.env.SENTRY_ENVIRONMENT || process.env.NODE_ENV,
|
||||
release: process.env.SENTRY_RELEASE,
|
||||
sendDefaultPii: false,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user