Skip to content

Ensure. Sentry.captureUserFeedback(feedback) is exported from node packages #11072

Closed
@alexavil

Description

@alexavil

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.106.1

Framework Version

No response

Link to Sentry event

No response

SDK Setup

  Sentry.init({
    dsn: "https://d7c06763ec24990c168e4ad0db91e360@o4504711913340928.ingest.sentry.io/4505981661151232",
    tracesSampleRate: 1.0,
    profilesSampleRate: 1.0,
    integrations: [
      new Sentry.Integrations.Http({ tracing: true }),
      new nodeProfilingIntegration(),
    ],
    environment: debug ? "testing" : "production",
    release: "3.0",
  });

Steps to Reproduce

I copied the following example from the Node.js documentation page for User Feedback:

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

const eventId = Sentry.captureMessage("User Feedback");
// OR: const eventId = Sentry.lastEventId();

const userFeedback = {
  event_id: eventId,
  name: "John Doe",
  email: "john@doe.com",
  comments: "I really like your App, thanks!",
};
Sentry.captureUserFeedback(userFeedback);

Expected Result

User Feedback should be captured properly.

Actual Result

TypeError: Sentry.captureUserFeedback is not a function

Looks like this function is missing from the @sentry/node package, but the documentation says Node.js is supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions