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

@sentry/vue include httpClientIntegration #10894

Closed
giolf opened this issue Mar 2, 2024 · 7 comments
Closed

@sentry/vue include httpClientIntegration #10894

giolf opened this issue Mar 2, 2024 · 7 comments

Comments

@giolf
Copy link

giolf commented Mar 2, 2024

Problem Statement

Currently it seems is not possible to use the httpClientIntegration with '@sentry/vue' package:

  Sentry.init({
  ...
    integrations: [
      Sentry.browserTracingIntegration({ router }),
      Sentry.replayIntegration(),
      httpClientIntegration({...})
    ],
    ...
  })

Solution Brainstorm

Any ideas about it does not work? I get a type incompatibilities error

@giolf giolf changed the title include httpClientIntegration @sentry/vue include httpClientIntegration Mar 2, 2024
@mydea
Copy link
Member

mydea commented Mar 4, 2024

Hello,

do you have the exact same version of @sentry/integrations and @sentry/vue installed? Can you make sure in your lockfile that there is no other version of a @sentry/... package installed? You can delete your lockfile & node_modules folder and re-install, that should align all versions.

For the upcoming v8 release, you won't need @sentry/integrations anymore, but you'll be able to directly add this integration from @sentry/vue, which will hopefully make these kinds of version alignment issues go away!

@giolf
Copy link
Author

giolf commented Mar 4, 2024

Hi

npm show @sentry/vue version
7.105.0
npm install @sentry/integrations 7.105.0
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/7.105.0 - Not found
npm ERR! 404
npm ERR! 404  '7.105.0@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: /Users/giovanni.far/.npm/_logs/2024-03-04T09_13_32_955Z-debug-0.log

@lforst
Copy link
Member

lforst commented Mar 4, 2024

@giolf Unfortunately that message is not really helpful to us. You likely have an npm proxy configured. Can you please check your lockfile for multiple different versions of sentry packages. Thank you!

@giolf
Copy link
Author

giolf commented Mar 4, 2024

@lforst I dont' have any proxy installed on top of npm.
@mydea raised up the fact of having the same version for @sentry/vue and @sentry/integrations ...
My version is 7.105.0 however that exact version does not exists for @sentry/integrations

in my lock file all sentry stuff has the same version, expect for @sentry/integrations because is uninstalled

@giolf
Copy link
Author

giolf commented Mar 4, 2024

uh wait, my bad typo in the npm install command. I found the version. I will give it a try and let u know if that fix it.

@giolf
Copy link
Author

giolf commented Mar 4, 2024

@mydea, @lforst
It seems to work, thanks a lot.
Quick question: it would be possible to show the stack trace in order to see from where the exception has been raised?

@lforst
Copy link
Member

lforst commented Mar 5, 2024

It seems to work, thanks a lot.

@giolf Cool. Closing this issue then!

Quick question: it would be possible to show the stack trace in order to see from where the exception has been raised?

We are tracking this here: #8353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants