Skip to content

Not able to import and use 'httpClientIntegration' from @sentry/integrations #11691

@tejas6995

Description

@tejas6995

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/vue

SDK Version

7.111.0

Framework Version

Vue 2.7.15

Link to Sentry event

NA

SDK Setup

import * as Sentry from '@sentry/vue'
import { httpClientIntegration } from '@sentry/integrations'

Sentry.init({
    Vue,
    dsn: process.env.VUE_APP_SENTRY_DSN,
    environment: process.env.VUE_APP_SENTRY_ENVIRONMENT,
    release: `v${process.env.VUE_APP_VERSION}`,
    integrations: [

        Sentry.browserTracingIntegration(),
        Sentry.replayIntegration({
            maskAllText: false,
            blockAllMedia: false,
        }),
        httpClientIntegration()
    ],
    attachStacktrace: true,
    autoSessionTracking: true,
    tracesSampleRate: 1.0, 
    replaysSessionSampleRate: 0.1,
    replaysOnErrorSampleRate: 1.0, 
})

Steps to Reproduce

  1. Import 'httpClientIntegration' from @sentry/integrations
  2. Add it in Sentry integrations

Expected Result

It should be imported properly and should work as mentioned in docs

Actual Result

It seems the it is not exported properly from @sentry/integrations
Sentry stops working when I add 'httpClientIntegration' to integrations array.
Intellisense doen't work on this imported package and doesn't take you to type definitions file if 'cmd + click' (Mac) on @sentry/integrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: vueIssues related to the Sentry Vue SDK

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions