Skip to content

SvelteKit SDK creates server transactions with [Method] null name #8199

Closed
@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

7.53.0

Framework Version

SvelteKit 1.x

Link to Sentry event

No response

SDK Setup

Basic SDK setup from wizard

Steps to Reproduce

  1. npm create svelte@latest
  2. npx @sentry/wizard@latest -i sveltekit
  3. curl localhost:PORT/something

Expected Result

Three options here:

  1. The SDK discards transactions that don't have a matching route
  2. The SDK falls back to the raw URL (sets the source accordingly) and the txn shows as <> in Sentry
  3. The SDK falls back to a "unknown route" transaction, sets the source as custom and sends it to Sentry where it will show up like a normal transaction

I'm currently leaning towards option 1 because I don't see value in these transactions and it's the simplest course of action

Actual Result

The SDK sends a transaction with with a name like GET|POST null to Sentry, with source route

This happens because we determine the txn name with event.route.id which evaluates to null.

Metadata

Metadata

Assignees

Labels

Package: sveltekitIssues related to the Sentry SvelteKit SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions