-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unable to detect request time when using ofetch or composables derive from it #42
Comments
Nice, I've just seen that the ofetch will be patched with the next release, so this issue will likely be solved as well. :) Since I want to use this module in my new project, I can offer you to help if needed. |
@Gonzo17 yeah, it's nice. I will send the update as soon as ofetch team publishes their own. So stay tuned :) |
Any idea when this will be available? Thanks |
hi. will try to check this weekend, ofetch update is already available so hope it will work |
Let us know <3 |
i tested the last version of nuxt in the context of compatibility with the @mswjs/interceptors package. requests through direct ofetch methods work fine and i can measure the duration, but if ofetch is wrapped in nuxt useFetch mswjs interceptors doesn't work, so right now trying to figure out why, through digging inside nuxt source code |
Due to this issue in ofetch package
@artmizu/nuxt-prometheus
cannot detect network requests which take place through useFetch or $fetch, because they both use ofetch inside. So on the /metrics page, you don't see any request time related to ofetch.I've already tried:
Maybe someone has an idea of how to overcome the issue? Or we'll just wait for updates from ofetch
The text was updated successfully, but these errors were encountered: