0.1.3 • Published 2 years ago

unplugin-opentelemetry v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

unplugin-opentelemetry

NPM version

Install

npm i unplugin-opentelemetry
// vite.config.ts
import otel from 'unplugin-opentelemetry/vite'

export default defineConfig({
  plugins: [
    otel({ /* options */ }),
  ],
})

Example: playground/

// rollup.config.js
import otel from 'unplugin-opentelemetry/rollup'

export default {
  plugins: [
    otel({ /* options */ }),
  ],
}

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-opentelemetry/webpack')({ /* options */ })
  ]
}

// nuxt.config.js
export default {
  buildModules: [
    ['unplugin-opentelemetry/nuxt', { /* options */ }],
  ],
}

This module works for both Nuxt 2 and Nuxt Vite

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-opentelemetry/webpack')({ /* options */ }),
    ],
  },
}