Skip to content

React Router Framework setup references description in wrapping loaders and actions #15179

@Jiralite

Description

@Jiralite

SDK

Other

Description

Here:

https://docs.sentry.io/platforms/javascript/guides/react-router/#server-side-setup

The code for the loader (for example) is:

export const loader = Sentry.wrapServerLoader(
  {
    name: "Load Some Data",
    description: "Loads some data from the db",
  },
  async ({ params }) => {
    // ... your loader logic
  }
);

description does not seem to exist in the first parameter. The type is SpanOptions which is:

type SpanOptions = {
    name?: string;
    attributes?: SpanAttributes;
};

Using @sentry/react-router 10.19.0.


Also, if the span options are all optional, why is this required?

Suggested Solution

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions