Merged in fix/application-insights-sentry (pull request #1269)
fix: application insights works again * fix: application insights works again Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -3,8 +3,15 @@ import * as Sentry from "@sentry/nextjs"
|
|||||||
import { env } from "./env/server"
|
import { env } from "./env/server"
|
||||||
|
|
||||||
export async function register() {
|
export async function register() {
|
||||||
await configureSentry()
|
/*
|
||||||
|
Order matters!
|
||||||
|
|
||||||
|
Sentry hooks into OpenTelemetry, modifying its behavior.
|
||||||
|
Application Insights relies on OpenTelemetry exporters,
|
||||||
|
and these may not work correctly if Sentry has already altered the instrumentation pipeline.
|
||||||
|
*/
|
||||||
await configureApplicationInsights()
|
await configureApplicationInsights()
|
||||||
|
await configureSentry()
|
||||||
}
|
}
|
||||||
|
|
||||||
export const onRequestError = Sentry.captureRequestError
|
export const onRequestError = Sentry.captureRequestError
|
||||||
|
|||||||
Reference in New Issue
Block a user