huang-julien / nitro-applicationinsights

Application insights plugin for nitro.
MIT License
10 stars 0 forks source link

fetchInterceptors and undefined values #48

Closed robert-phillips1 closed 4 months ago

robert-phillips1 commented 4 months ago

I am using the fetchInterceptors to track my dependencies, but i'm finding some of the values are turning up in app insights as undefined. For example in onResponse:

name: `${context.options.method} ${context.response.url}}`,

both method (if one wasn't provided) and context.response.url return undefined.

huang-julien commented 4 months ago

hmmm that's weird. Are you able to provide a minimal reproduction through stackblitz ? https://stackblitz.com/edit/unjs-nitro-starter-zziw9t?file=README.md&title=Nitro%20Starter

I just need to reproduce it to see what's going on

edit: nvm i got it