✅ Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
This commit is contained in:
39
dealplustech-astro/node_modules/drizzle-orm/tracing.js
generated
vendored
Normal file
39
dealplustech-astro/node_modules/drizzle-orm/tracing.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { iife } from "./tracing-utils.js";
|
||||
import { npmVersion } from "./version.js";
|
||||
let otel;
|
||||
let rawTracer;
|
||||
const tracer = {
|
||||
startActiveSpan(name, fn) {
|
||||
if (!otel) {
|
||||
return fn();
|
||||
}
|
||||
if (!rawTracer) {
|
||||
rawTracer = otel.trace.getTracer("drizzle-orm", npmVersion);
|
||||
}
|
||||
return iife(
|
||||
(otel2, rawTracer2) => rawTracer2.startActiveSpan(
|
||||
name,
|
||||
(span) => {
|
||||
try {
|
||||
return fn(span);
|
||||
} catch (e) {
|
||||
span.setStatus({
|
||||
code: otel2.SpanStatusCode.ERROR,
|
||||
message: e instanceof Error ? e.message : "Unknown error"
|
||||
// eslint-disable-line no-instanceof/no-instanceof
|
||||
});
|
||||
throw e;
|
||||
} finally {
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
),
|
||||
otel,
|
||||
rawTracer
|
||||
);
|
||||
}
|
||||
};
|
||||
export {
|
||||
tracer
|
||||
};
|
||||
//# sourceMappingURL=tracing.js.map
|
||||
Reference in New Issue
Block a user