Skip to content

Remix - backend (server) performance monitoring and tracing with express #6965

Answered by AbhiPrasad
alexblack asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alexblack, we need to update our performance docs to make backend configuration more clear. For now you can see these instructions in https://docs.sentry.io/platforms/javascript/guides/remix/.

// entry.server.tsx
import { prisma } from "~/db.server";

import * as Sentry from "@sentry/remix";

Sentry.init({
  dsn: "https://[email protected]/0",
  tracesSampleRate: 1,
  integrations: [new Sentry.Integrations.Prisma({ client: prisma })],
  // ...
});
// server/index.ts
import { wrapExpressCreateRequestHandler } from "@sentry/remix";
import { createRequestHandler } from '@remix-run/express';

// ...

const createSentryRequestHandler = wrapExpressCreateRequestHandler(cr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alexblack
Comment options

@AbhiPrasad
Comment options

@alexblack
Comment options

Answer selected by AbhiPrasad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants