Use cases and boundaries
Choose the adapter for your framework. For Vext, SDK/exporter initialization and request-specific instrumentation are separate phases; set service identity and exporter destination deliberately. The application chooses collection scope and the telemetry backend.
Getting started and compatibility
Install the released package
npm install @devcodex/opentelemetry@2.1.17
Version 2.1.17 declares Node.js ^18.19.0 || >=20.6.0 and a vextjs peer of >=0.2.5. Use a Node.js version also supported by your Vext host. Save the fragment as src/plugins/otel.ts and point it to a running OTLP HTTP collector.
import { opentelemetryPlugin } from '@devcodex/opentelemetry/vextjs';
export default opentelemetryPlugin({
serviceName: 'reports-api', endpoint: 'http://127.0.0.1:4318', protocol: 'http'
});
When the host enables early SDK startup (vext.otel.preloadSdk), set the exported service.name with vext.otel.serviceName in package.json. The SDK Resource is created during preload. The plugin's serviceName configures runtime tracer, meter and logger names. Vext startup and telemetry configuration