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

Nuxt 3 Support #64

Open
harlan-zw opened this issue Sep 11, 2023 · 10 comments
Open

Nuxt 3 Support #64

harlan-zw opened this issue Sep 11, 2023 · 10 comments

Comments

@harlan-zw
Copy link
Contributor

Hey 👋 It looks like this module hasn't been updated for Nuxt 3. In an effort to improve the developer experience of modules, I've updated the module to clarify that it only supports Nuxt 2.

If Nuxt 3 support is added it will be moved to the https://github.com/nuxt-modules organisation.

@aldarund Is Nuxt 3 support something you have planned? If not, perhaps we can find someone to help bring it to v3, otherwise, we can deprecate this module?

Please let us know and thanks for your work!

@harlan-zw harlan-zw pinned this issue Sep 11, 2023
@Aniketsurya
Copy link

Hello team, so as it has no support for nuxt 3 will this module not work for even tracking errors?
Or somethings will work, and which are they?

Is there any other module I can use for nuxt appinsight implementation with azure app insights?
Please also let me know, when are we planning for nuxt 3 support.

@harlan-zw
Copy link
Contributor Author

I believe huang-julien is working on the Nuxt 3 support for nuxt-applicationinsights

@Aniketsurya
Copy link

Aniketsurya commented Oct 30, 2023

Thanks for replying. I hope to see some repo reference for nuxt 3 so that use it as soon as possible :)

Edited: Any update on this?

@induguptha
Copy link

Hi Team, Is there any update on it?

  1. Can you suggest us alternative for implementing the application insights with Nuxt 3?

  2. By any chance, can we get to know when can this be available?

Please help us with your answers and Thanks for looking into it

@harlan-zw
Copy link
Contributor Author

@huang-julien has this repo https://github.com/huang-julien/nuxt-applicationinsights, now sure how stable it is

@induguptha
Copy link

Hello @harlan-zw, appreciate your prompt engagement. I'm curious if we can integrate fundamental application insights, as outlined in this documentation: https://learn.microsoft.com/en-us/azure/azure-monitor/app/nodejs. It suggests installing the "applicationInsights" package, importing it into one of the project's startup files, and initiating Application Insights.

Is this feasible even in a Nuxt 3 application?

Thank you :)

@huang-julien
Copy link

Hey there 👋 .
So i've made multiple attempts to implement applicationinsights before creating nitro-applicationinsights and nuxt-applicationinsights.

Currently, installing applicationinsights requires a lot of manual tracking:

  • On nuxt bridge, we have a lot of memory leaks when enabling auto-tracking. Don't know if it's still the case with stable bridge
  • on Nuxt/nitro, a lot of auto-tracking are simply not working
  • everything needs to be tracked manually
  • on the latest nuxt versions, you need to force the resolution of mlly to 1.4.0 (or bellow)

Some features are still missing on nitro-applicationinsights

  • on nitro, $fetch is not auto-tracked. I'm currently working on adding the auto-dependency tracking. Request are correctly tracked. Let's hope applicationinsights 3.0 will bring some improvements....
  • on nuxt 3 client-side. nuxt-applicationinsights is stable enough.

It's still feasible to add applicationinsights on Nuxt 3/Nitro but everything has to be tracked manually

@induguptha
Copy link

induguptha commented Dec 7, 2023

Thank you so much clear explanation @huang-julien, by any chance do you have reference repository that you can share with us which had implemented the fundamental app insights with Nuxt 3 SSR enabled.

we are facing issues while importing the packages and also while adding them as plugins

@induguptha
Copy link

When i add basic implementation as shown the Microsoft page, ApplicationInsights:Sender [
'Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.',
[]
].
I get this error and when i try to add it as plugin then i get
Cannot find module './AutoCollection/CorrelationContextManager' Require stack: - C:\Users*****\Workplace*project*\applicationinsights

@huang-julien
Copy link

this issue is due to mlly. You need to downgrade it to 1.4.0.

Unfortunately, I don't have any public repo with applicationinsights ATM. Well... except nuxt-applicationinsights 😂

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

No branches or pull requests

4 participants