mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
Compare commits
3 Commits
formbricks
...
add-infras
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b55e0fc27e | ||
|
|
84993cf42b | ||
|
|
979ad9e78a |
@@ -3,20 +3,29 @@ import { LangfuseExporter } from "langfuse-vercel";
|
|||||||
import { env } from "@formbricks/lib/env";
|
import { env } from "@formbricks/lib/env";
|
||||||
|
|
||||||
export async function register() {
|
export async function register() {
|
||||||
if (env.LANGFUSE_SECRET_KEY && env.LANGFUSE_PUBLIC_KEY && env.LANGFUSE_BASEURL) {
|
|
||||||
registerOTel({
|
|
||||||
serviceName: "formbricks-cloud-dev",
|
|
||||||
traceExporter: new LangfuseExporter({
|
|
||||||
debug: false,
|
|
||||||
secretKey: env.LANGFUSE_SECRET_KEY,
|
|
||||||
publicKey: env.LANGFUSE_PUBLIC_KEY,
|
|
||||||
baseUrl: env.LANGFUSE_BASEURL,
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||||
await import("./sentry.server.config");
|
if (env.LANGFUSE_SECRET_KEY && env.LANGFUSE_PUBLIC_KEY && env.LANGFUSE_BASEURL) {
|
||||||
|
registerOTel({
|
||||||
|
serviceName: "formbricks-cloud-dev",
|
||||||
|
traceExporter: new LangfuseExporter({
|
||||||
|
debug: false,
|
||||||
|
secretKey: env.LANGFUSE_SECRET_KEY,
|
||||||
|
publicKey: env.LANGFUSE_PUBLIC_KEY,
|
||||||
|
baseUrl: env.LANGFUSE_BASEURL,
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||||
|
await import("./sentry.server.config");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env.OTEL_EXPORTER_OTLP_ENDPOINT && process.env.OTEL_EXPORTER_OTLP_HEADERS) {
|
||||||
|
const { startOtel } = await import("@infrastack/otel");
|
||||||
|
startOtel({
|
||||||
|
serviceName: "formbricks-web",
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.NEXT_RUNTIME === "edge") {
|
if (process.env.NEXT_RUNTIME === "edge") {
|
||||||
|
|||||||
@@ -20,14 +20,18 @@ const nextConfig = {
|
|||||||
output: "standalone",
|
output: "standalone",
|
||||||
poweredByHeader: false,
|
poweredByHeader: false,
|
||||||
experimental: {
|
experimental: {
|
||||||
serverComponentsExternalPackages: ["@aws-sdk"],
|
serverComponentsExternalPackages: [
|
||||||
instrumentationHook: true,
|
"@aws-sdk",
|
||||||
|
"@opentelemetry/auto-instrumentations-node",
|
||||||
|
"@opentelemetry/sdk-node",
|
||||||
|
],
|
||||||
staleTimes: {
|
staleTimes: {
|
||||||
dynamic: 0,
|
dynamic: 0,
|
||||||
},
|
},
|
||||||
outputFileTracingIncludes: {
|
outputFileTracingIncludes: {
|
||||||
"app/api/packages": ["../../packages/js-core/dist/*", "../../packages/surveys/dist/*"],
|
"app/api/packages": ["../../packages/js-core/dist/*", "../../packages/surveys/dist/*"],
|
||||||
},
|
},
|
||||||
|
instrumentationHook: true,
|
||||||
},
|
},
|
||||||
transpilePackages: ["@formbricks/database", "@formbricks/ee", "@formbricks/ui", "@formbricks/lib"],
|
transpilePackages: ["@formbricks/database", "@formbricks/ee", "@formbricks/ui", "@formbricks/lib"],
|
||||||
images: {
|
images: {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"@formbricks/types": "workspace:*",
|
"@formbricks/types": "workspace:*",
|
||||||
"@formbricks/ui": "workspace:*",
|
"@formbricks/ui": "workspace:*",
|
||||||
"@hookform/resolvers": "3.9.0",
|
"@hookform/resolvers": "3.9.0",
|
||||||
|
"@infrastack/otel": "0.1.1",
|
||||||
"@json2csv/node": "7.0.6",
|
"@json2csv/node": "7.0.6",
|
||||||
"@opentelemetry/api-logs": "0.53.0",
|
"@opentelemetry/api-logs": "0.53.0",
|
||||||
"@opentelemetry/instrumentation": "0.53.0",
|
"@opentelemetry/instrumentation": "0.53.0",
|
||||||
|
|||||||
913
pnpm-lock.yaml
generated
913
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -134,6 +134,8 @@
|
|||||||
"OIDC_DISPLAY_NAME",
|
"OIDC_DISPLAY_NAME",
|
||||||
"OIDC_ISSUER",
|
"OIDC_ISSUER",
|
||||||
"OIDC_SIGNING_ALGORITHM",
|
"OIDC_SIGNING_ALGORITHM",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT",
|
||||||
|
"OTEL_EXPORTER_OTLP_HEADERS",
|
||||||
"PASSWORD_RESET_DISABLED",
|
"PASSWORD_RESET_DISABLED",
|
||||||
"PLAYWRIGHT_CI",
|
"PLAYWRIGHT_CI",
|
||||||
"PRIVACY_URL",
|
"PRIVACY_URL",
|
||||||
|
|||||||
Reference in New Issue
Block a user