-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Attempting to add HoneyHive * fix: no errors but honeyhive still not working * Remove Honeyhive * feat: Langfuse Tracing * chore: remove honeyhive deps * chore (langfuse):Add environment and release info * chore: Fix Build Errors
- Loading branch information
1 parent
e23fcee
commit 45a7b76
Showing
6 changed files
with
423 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
import { registerOTel } from '@vercel/otel'; | ||
import { LangfuseExporter } from 'langfuse-vercel' | ||
|
||
export async function register() { | ||
|
||
registerOTel({ | ||
serviceName: 'tutor-gpt', | ||
traceExporter: new LangfuseExporter() | ||
}) | ||
|
||
if (process.env.NEXT_RUNTIME === "nodejs") { | ||
await import("./sentry.server.config"); | ||
} | ||
|
||
if (process.env.NEXT_RUNTIME === "edge") { | ||
await import("./sentry.edge.config"); | ||
} | ||
|
||
} | ||
|
||
export const onRequestError = Sentry.captureRequestError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.