@open-infra/telemetry-browser-vue
v0.2.0
Published
Vue plugin and injection utilities for OpenInfra browser telemetry.
Maintainers
Readme
@open-infra/telemetry-browser-vue
Vue bindings for the shared browser runtime.
Install
npm install @open-infra/telemetry-browser-vue vueES modules with TypeScript declarations. Node.js 20.11 or newer; browser bindings require a browser bundler. Use synchronized versions of the OpenInfra telemetry packages.
Usage
Use app.use(createBrowserTelemetryPlugin({ runtime })). useBrowserTelemetry retrieves the injected runtime. Startup is asynchronous; await runtime.start() before manual emission. The plugin chains the previous Vue error handler and restores it on unmount.
Lifecycle and limits
Application runtimes own startup, consent, batching, and shutdown. Queues are bounded and can drop records under pressure. Framework adapters enrich existing spans rather than creating a second request span or provider. Keep browser gateway credentials on the server.
Getting started · Operations · Delivery semantics
Apache-2.0.
