Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trace metadata to solidstart template #12551

Closed
Tracked by #12538
andreiborza opened this issue Jun 19, 2024 · 0 comments · Fixed by #13221
Closed
Tracked by #12538

Add trace metadata to solidstart template #12551

andreiborza opened this issue Jun 19, 2024 · 0 comments · Fixed by #13221
Assignees
Labels
Package: solidstart Issues related to the Sentry SolidStart SDK

Comments

@andreiborza
Copy link
Member

No description provided.

@andreiborza andreiborza changed the title Add trace metadata to template Add trace metadata to solidstart template Jun 19, 2024
@andreiborza andreiborza self-assigned this Jun 19, 2024
@andreiborza andreiborza added the Package: solidstart Issues related to the Sentry SolidStart SDK label Jun 19, 2024
andreiborza added a commit that referenced this issue Aug 5, 2024
…distributed tracing (#13221)

Works by adding the Sentry middlware to your `src/middleware.ts` file:

```typescript
import { sentryBeforeResponseMiddleware } from '@sentry/solidstart/middleware';
import { createMiddleware } from '@solidjs/start/middleware';

export default createMiddleware({
  onBeforeResponse: [
    sentryBeforeResponseMiddleware(),
    // Add your other middleware handlers after `sentryBeforeResponseMiddleware`
  ],
});
```

And specifying `./src/middleware.ts` in `app.config.ts`

Closes: #12551

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: solidstart Issues related to the Sentry SolidStart SDK
Projects
None yet
1 participant