Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

startup message (#300)

Maximilian Deichmann7da2b32a1523
diff --git a/next.config.mjs b/next.config.mjs
index 8af77400ae..30ab93c62a 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -30,7 +30,9 @@ const nextConfig = {
return config;
},
-
+ experimental: {
+ instrumentationHook: true,
+ },
sentry: {
// See the sections below for information on the following options:
// 'Configure Source Maps':
diff --git a/src/instrumentation.ts b/src/instrumentation.ts
new file mode 100644
index 0000000000..a34e3952da
--- /dev/null
+++ b/src/instrumentation.ts
@@ -0,0 +1,16 @@
+export function register() {
+ console.log(`
+
+ __ ___
+ | | __ ___ ___| _|_ _ ___ ___
+ | |__ |. | | . | _| | |_ -| -_|
+ |_____|___|_|_|_ |_| |___|___|___|
+ |___|
+
+
+ Technical docs: https://langfuse.com/docs
+ Community Discord: https://langfuse.com/discord
+ Contact maintainers: [email protected]
+
+ `);
+}