JuanP Barba
JuanP Barba
NNuxt
Created by JuanP Barba on 5/9/2024 in #❓・help
Extending nitro node-server preset/entry
I'm trying to add OpenTelemetry instrumentation to a Nuxt module by extending the Nitro node-server preset. I know I can execute something like this:
node --require instrumentation.js .output/server/index.mjs
node --require instrumentation.js .output/server/index.mjs
But I would like to integrate it with Nitro for several reasons: Simplify the start command Bundle dependencies to keep everything within the .output folder Enable future enhancements with hooks and custom tracing I tried to create a new entry for Nitro by importing this file: https://stackblitz.com/edit/unjs-nitro-starter-wxdb1h?file=server%2Fentry.ts However, it's not working. I'm not sure if I'm missing something. --- I also tried cloning the node-server entry to make modifications: https://stackblitz.com/edit/unjs-nitro-starter-hpgti5?file=server%2Fentry.ts This works, but it's not ideal.
3 replies
NNuxt
Created by JuanP Barba on 5/6/2024 in #❓・help
Open Telemetry + Vue + Nuxt Integration
I am setting up OpenTelemetry in a Nuxt-based application. I just wanted to know if anyone in the community has or knows of something already implemented that integrates OpenTelemetry with Vue and/or Nuxt, since there seems to be no official solution yet. I am sure someone else must have tried it or will want to do it at some point 😆
3 replies