diff --git a/example-apps/collector/.env b/example-apps/collector/.env index f94dabfe58..00dccf7bf8 100644 --- a/example-apps/collector/.env +++ b/example-apps/collector/.env @@ -1,6 +1,6 @@ # All default settings defined here can be overridden by environment variables. -# MODE=npm +MODE=local APP_PORT=2807 SENSOR_ENABLED=true TRACING_ENABLED=true diff --git a/example-apps/collector/src/index.js b/example-apps/collector/src/index.js index f2f27aa497..4aec420fd6 100644 --- a/example-apps/collector/src/index.js +++ b/example-apps/collector/src/index.js @@ -19,6 +19,9 @@ if (config.mode === 'npm') { packageToRequire = '@instana/collector'; } +process.env.INSTANA_METRICS_TRANSMISSION_DELAY = 5000; +process.env.INSTANA_OTLP_FORMAT = 'true'; + if (config.collectorEnabled) { console.log(`enabling @instana/collector (requiring ${packageToRequire})`); require(packageToRequire)({ diff --git a/example-apps/otel-exporter-test/.gitignore b/example-apps/otel-exporter-test/.gitignore new file mode 100644 index 0000000000..3582051374 --- /dev/null +++ b/example-apps/otel-exporter-test/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +data.txt +npm-debug.log +.DS_Store \ No newline at end of file diff --git a/example-apps/otel-exporter-test/README.md b/example-apps/otel-exporter-test/README.md new file mode 100644 index 0000000000..64a00bfeb6 --- /dev/null +++ b/example-apps/otel-exporter-test/README.md @@ -0,0 +1,236 @@ +# OpenTelemetry Exporter Test App + +A comprehensive Express.js application for testing OpenTelemetry tracing with Instana backend, including HTTP, PostgreSQL, and Kafka instrumentation. + +## Features + +- **HTTP tracing**: Express.js REST API with external HTTP calls +- **PostgreSQL tracing**: Database queries with pg driver +- **Kafka tracing**: Message producer and consumer +- **OpenTelemetry auto-instrumentation**: Automatic tracing for all operations +- **OTLP HTTP exporter**: Configured for Instana backend +- **Debug logging**: Console output for spans + +## Prerequisites + +1. **PostgreSQL** running on `localhost:5432` + - Database: `nodedb` + - User: `node` + - Password: `nodepw` + +2. **Kafka** running on `localhost:9092` + - Topic: `test-topic` (will be created automatically) + +3. **Instana** account with OTLP endpoint access + +## Setup + +### 1. Install Dependencies + +```bash +npm install +``` + +### 2. Configure PostgreSQL + +```bash +# Create database and user +psql -U postgres +CREATE DATABASE nodedb; +CREATE USER node WITH PASSWORD 'nodepw'; +GRANT ALL PRIVILEGES ON DATABASE nodedb TO node; +``` + +### 3. Configure Kafka + +Make sure Kafka is running on `localhost:9092`. If using Docker: + +```bash +docker run -d --name kafka \ + -p 9092:9092 \ + -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 \ + -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 \ + confluentinc/cp-kafka:latest +``` + +### 4. Update Instana Configuration + +Edit `tracing.js` and update: +- `url`: Your Instana OTLP endpoint +- `x-instana-key`: Your Instana API key + +### 5. Start the Application + +```bash +npm start +``` + +Or for development with otel: + +```bash +npm run start-otel +``` + +## API Endpoints + +### 1. HTTP Entry + HTTP Exit + +Tests HTTP client instrumentation with external API call. + +```bash +curl http://localhost:3000/external-api +``` + +**Expected trace:** +- HTTP server span (Express) +- HTTP client span (fetch to jsonplaceholder.typicode.com) + +### 2. HTTP Entry + PostgreSQL Exit + +Tests PostgreSQL database instrumentation. + +```bash +curl http://localhost:3000/db +``` + +**Expected trace:** +- HTTP server span (Express) +- PostgreSQL query span + +### 3. HTTP Entry + Kafka Exit + +Tests Kafka producer instrumentation. + +```bash +curl -X POST http://localhost:3000/kafka \ + -H "Content-Type: application/json" \ + -d '{"message":"Hello from OpenTelemetry!"}' +``` + +**Expected trace:** +- HTTP server span (Express) +- Kafka producer span +- Kafka consumer span (async, separate trace) + +## Tracing Details + +The application automatically traces: + +### HTTP Operations +- Express route handlers +- Outgoing HTTP requests (fetch/axios) +- Request/response details + +### PostgreSQL Operations +- SQL queries +- Connection details +- Query parameters + +### Kafka Operations +- Message production +- Message consumption +- Topic and partition information +- Custom attributes via hooks + +## Viewing Traces + +1. Make requests to the API endpoints +2. Check console output for span details +3. View traces in your Instana dashboard + +## Troubleshooting + +### PostgreSQL Connection Issues + +```bash +# Check if PostgreSQL is running +pg_isready -h localhost -p 5432 + +# Test connection +psql -h localhost -U node -d nodedb +``` + +### Kafka Connection Issues + +```bash +# Check if Kafka is running +nc -zv localhost 9092 + +# List topics +kafka-topics --list --bootstrap-server localhost:9092 +``` + +### OpenTelemetry Issues + +- Check console output for initialization messages +- Verify OTLP endpoint is accessible +- Ensure API key is correct +- Set log level to `DiagLogLevel.DEBUG` in `tracing.js` for more details + +## Configuration + +### Disable Console Exporter + +In `tracing.js`, comment out: + +```javascript +// provider.addSpanProcessor(new SimpleSpanProcessor(consoleExporter)); +``` + +### Change Service Name + +In `tracing.js`, update: + +```javascript +[SemanticResourceAttributes.SERVICE_NAME]: 'your-service-name' +``` + +### Disable Specific Instrumentations + +In `tracing.js`, modify the `getNodeAutoInstrumentations` options: + +```javascript +getNodeAutoInstrumentations({ + '@opentelemetry/instrumentation-fs': { enabled: false }, + '@opentelemetry/instrumentation-dns': { enabled: false } +}) +``` + +## Docker Setup (Optional) + +For running PostgreSQL and Kafka in Docker: + +```bash +# PostgreSQL +docker run -d --name postgres \ + -e POSTGRES_USER=node \ + -e POSTGRES_PASSWORD=nodepw \ + -e POSTGRES_DB=nodedb \ + -p 5432:5432 \ + postgres:15 + +# Kafka (requires Zookeeper) +docker-compose up -d +``` + +Create a `docker-compose.yml`: + +```yaml +version: '3' +services: + zookeeper: + image: confluentinc/cp-zookeeper:latest + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + + kafka: + image: confluentinc/cp-kafka:latest + depends_on: + - zookeeper + ports: + - "9092:9092" + environment: + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092 + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 +``` \ No newline at end of file diff --git a/example-apps/otel-exporter-test/app.js b/example-apps/otel-exporter-test/app.js new file mode 100644 index 0000000000..6017e47ca8 --- /dev/null +++ b/example-apps/otel-exporter-test/app.js @@ -0,0 +1,106 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +const express = require('express'); +const { Pool } = require('pg'); +const { sendKafkaMessage, startKafkaConsumer } = require('./kafka'); + +const app = express(); +app.use(express.json()); + +const PORT = 3000; + +const pool = new Pool({ + host: 'localhost', + port: 5432, + user: 'node', + password: 'nodepw', + database: 'nodedb' +}); + +// --------------------------------------------------- +// 1. HTTP ENTRY + HTTP EXIT +// --------------------------------------------------- + +app.get('/external-api', async (req, res) => { + try { + const response = await fetch('https://jsonplaceholder.typicode.com/todos/1'); + const data = await response.json(); + + res.json({ + success: true, + data + }); + } catch (err) { + // eslint-disable-next-line no-console + console.error(err); + + res.status(500).json({ + error: err.message + }); + } +}); + +// --------------------------------------------------- +// 2. HTTP ENTRY + PG EXIT +// --------------------------------------------------- + +app.get('/db', async (req, res) => { + try { + const result = await pool.query('SELECT NOW() as current_time'); + + res.json({ + success: true, + rows: result.rows + }); + } catch (err) { + // eslint-disable-next-line no-console + console.error(err); + + res.status(500).json({ + error: err.message + }); + } +}); + +// --------------------------------------------------- +// 3. HTTP ENTRY + KAFKA EXIT +// --------------------------------------------------- + +app.post('/kafka', async (req, res) => { + try { + const payload = req.body || { + hello: 'world' + }; + + await sendKafkaMessage(payload); + + res.json({ + success: true, + sent: payload + }); + } catch (err) { + // eslint-disable-next-line no-console + console.error(err); + + res.status(500).json({ + error: err.message + }); + } +}); + +// --------------------------------------------------- +// START +// --------------------------------------------------- + +app.listen(PORT, async () => { + // eslint-disable-next-line no-console + console.log(`Server running on port ${PORT}`); + + await startKafkaConsumer(); +}); + +// Made with Bob diff --git a/example-apps/otel-exporter-test/kafka.js b/example-apps/otel-exporter-test/kafka.js new file mode 100644 index 0000000000..04248a3cf4 --- /dev/null +++ b/example-apps/otel-exporter-test/kafka.js @@ -0,0 +1,94 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +const { Kafka } = require('kafkajs'); + +const kafka = new Kafka({ + clientId: 'otel-node-app', + // HOST MACHINE: + brokers: ['localhost:9092'] + // DOCKER: + // brokers: ['kafka:29092'], +}); + +const producer = kafka.producer(); +const consumer = kafka.consumer({ + groupId: 'otel-group' +}); + +const TOPIC = 'test-topic'; + +let producerConnected = false; +let consumerStarted = false; + +async function connectProducer() { + if (!producerConnected) { + await producer.connect(); + producerConnected = true; + // eslint-disable-next-line no-console + console.log('Kafka producer connected'); + } +} + +async function sendKafkaMessage(message) { + await connectProducer(); + + await producer.send({ + topic: TOPIC, + messages: [ + { + key: 'sample-key', + value: JSON.stringify(message) + } + ] + }); + + // eslint-disable-next-line no-console + console.log('Kafka message sent'); +} + +async function startKafkaConsumer() { + if (consumerStarted) { + return; + } + + await consumer.connect(); + + await consumer.subscribe({ + topic: TOPIC, + fromBeginning: true + }); + + await consumer.run({ + eachMessage: async ({ topic, partition, message }) => { + const value = message.value?.toString(); + + // eslint-disable-next-line no-console + console.log('--------------------------------'); + // eslint-disable-next-line no-console + console.log('Kafka message received'); + // eslint-disable-next-line no-console + console.log('Topic:', topic); + // eslint-disable-next-line no-console + console.log('Partition:', partition); + // eslint-disable-next-line no-console + console.log('Value:', value); + // eslint-disable-next-line no-console + console.log('--------------------------------'); + } + }); + + consumerStarted = true; + // eslint-disable-next-line no-console + console.log('Kafka consumer started'); +} + +module.exports = { + sendKafkaMessage, + startKafkaConsumer +}; + +// Made with Bob diff --git a/example-apps/otel-exporter-test/package-lock.json b/example-apps/otel-exporter-test/package-lock.json new file mode 100644 index 0000000000..0313869184 --- /dev/null +++ b/example-apps/otel-exporter-test/package-lock.json @@ -0,0 +1,3457 @@ +{ + "name": "otel-exporter-test", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "otel-exporter-test", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@instana/collector": "file:../../packages/collector", + "@opentelemetry/api": "latest", + "@opentelemetry/auto-instrumentations-node": "latest", + "@opentelemetry/exporter-trace-otlp-http": "latest", + "@opentelemetry/instrumentation": "latest", + "@opentelemetry/instrumentation-express": "latest", + "@opentelemetry/instrumentation-http": "latest", + "@opentelemetry/instrumentation-kafkajs": "latest", + "@opentelemetry/instrumentation-pg": "latest", + "@opentelemetry/resources": "latest", + "@opentelemetry/sdk-trace-base": "latest", + "@opentelemetry/sdk-trace-node": "latest", + "@opentelemetry/semantic-conventions": "latest", + "express": "^4.18.2", + "kafkajs": "^2.2.4", + "pg": "^8.11.0" + }, + "devDependencies": { + "nodemon": "^2.0.22" + } + }, + "../../packages/collector": { + "name": "@instana/collector", + "version": "5.4.1", + "license": "MIT", + "dependencies": { + "@instana/core": "5.4.1", + "@instana/shared-metrics": "5.4.1", + "pino": "^9.13.0", + "semver": "^7.7.4", + "serialize-error": "^8.1.0" + }, + "bin": { + "instana-instrument-edgemicro-cli": "src/bin/instrument-edgemicro-cli.js" + }, + "engines": { + "node": ">=18.19.0" + }, + "optionalDependencies": { + "@instana/autoprofile": "5.4.1" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", + "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz", + "integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.5.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@instana/collector": { + "resolved": "../../packages/collector", + "link": true + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz", + "integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.218.0.tgz", + "integrity": "sha512-fmEWp5kXlGEc3i/lR698Hz41DfGyN4Tbe4g7L1AxSc7fF8Xeh/FQ9Quqpa9dVA413Q1Ad43QOLzU4JoXgbFPWw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/auto-instrumentations-node": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/auto-instrumentations-node/-/auto-instrumentations-node-0.76.0.tgz", + "integrity": "sha512-44KWgqsMuqfV4UhOcwwnDeK8CpB5LT1MmpZj6sKXFXu2q6rjKo622pWgOgn5Ntp5Qal9q1uBX2VS8mvTpsMeyw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/instrumentation-amqplib": "^0.65.0", + "@opentelemetry/instrumentation-aws-lambda": "^0.70.0", + "@opentelemetry/instrumentation-aws-sdk": "^0.73.0", + "@opentelemetry/instrumentation-bunyan": "^0.63.0", + "@opentelemetry/instrumentation-cassandra-driver": "^0.63.0", + "@opentelemetry/instrumentation-connect": "^0.61.0", + "@opentelemetry/instrumentation-cucumber": "^0.34.0", + "@opentelemetry/instrumentation-dataloader": "^0.35.0", + "@opentelemetry/instrumentation-dns": "^0.61.0", + "@opentelemetry/instrumentation-express": "^0.66.0", + "@opentelemetry/instrumentation-fs": "^0.37.0", + "@opentelemetry/instrumentation-generic-pool": "^0.61.0", + "@opentelemetry/instrumentation-graphql": "^0.66.0", + "@opentelemetry/instrumentation-grpc": "^0.218.0", + "@opentelemetry/instrumentation-hapi": "^0.64.0", + "@opentelemetry/instrumentation-http": "^0.218.0", + "@opentelemetry/instrumentation-ioredis": "^0.66.0", + "@opentelemetry/instrumentation-kafkajs": "^0.27.0", + "@opentelemetry/instrumentation-knex": "^0.62.0", + "@opentelemetry/instrumentation-koa": "^0.66.0", + "@opentelemetry/instrumentation-lru-memoizer": "^0.62.0", + "@opentelemetry/instrumentation-memcached": "^0.61.0", + "@opentelemetry/instrumentation-mongodb": "^0.71.0", + "@opentelemetry/instrumentation-mongoose": "^0.64.0", + "@opentelemetry/instrumentation-mysql": "^0.64.0", + "@opentelemetry/instrumentation-mysql2": "^0.64.0", + "@opentelemetry/instrumentation-nestjs-core": "^0.64.0", + "@opentelemetry/instrumentation-net": "^0.62.0", + "@opentelemetry/instrumentation-openai": "^0.16.0", + "@opentelemetry/instrumentation-oracledb": "^0.43.0", + "@opentelemetry/instrumentation-pg": "^0.70.0", + "@opentelemetry/instrumentation-pino": "^0.64.0", + "@opentelemetry/instrumentation-redis": "^0.66.0", + "@opentelemetry/instrumentation-restify": "^0.63.0", + "@opentelemetry/instrumentation-router": "^0.62.0", + "@opentelemetry/instrumentation-runtime-node": "^0.31.0", + "@opentelemetry/instrumentation-socket.io": "^0.65.0", + "@opentelemetry/instrumentation-tedious": "^0.37.0", + "@opentelemetry/instrumentation-undici": "^0.28.0", + "@opentelemetry/instrumentation-winston": "^0.62.0", + "@opentelemetry/resource-detector-alibaba-cloud": "^0.33.8", + "@opentelemetry/resource-detector-aws": "^2.18.0", + "@opentelemetry/resource-detector-azure": "^0.26.0", + "@opentelemetry/resource-detector-container": "^0.8.9", + "@opentelemetry/resource-detector-gcp": "^0.53.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/sdk-node": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.4.1", + "@opentelemetry/core": "^2.0.0" + } + }, + "node_modules/@opentelemetry/configuration": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/configuration/-/configuration-0.218.0.tgz", + "integrity": "sha512-W8wIz7H2R1pufR5jfjb3gU2XkMpm2x/7b1RJcsuzvd70Il/rWWE+g5/Od7hQKrxRTSrTrOWlru101PWXz5I1EQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "yaml": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0" + } + }, + "node_modules/@opentelemetry/context-async-hooks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.7.1.tgz", + "integrity": "sha512-OPFBYuXEn1E4ja3Y6eeA7O+ZnLBNcXTV5Cgsn1VaqBZ6hC5FnpZPLBNme1LJY8ZtF4aOujPKFoeWN4ik487KuQ==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.7.1.tgz", + "integrity": "sha512-QAqIj32AtK6+pEVNG7EOVxHdE06RP+FM5qpiEJ4RtDcFIqKUZHYhl7/7UY5efhwmwNAg7j8QbJVBLxMerc0+gw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-grpc": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-grpc/-/exporter-logs-otlp-grpc-0.218.0.tgz", + "integrity": "sha512-hoxrNH1l/Xy6F9WTJ5IK+6j1r9nQFlPOmrnTlhYHTySdunfXLmUCPv3bQtKYntxag9h3wLYBZQ2HI6FOx+BT2g==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.14.3", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/sdk-logs": "0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-http": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-http/-/exporter-logs-otlp-http-0.218.0.tgz", + "integrity": "sha512-Qx+4rpVHzgg89dawcWRHyt+XRXeLnhFz/qBtvggmjkcgPUdr+NAB0/u/eIPA8yAeJV0J80Vz43JZCh/XFvZFGw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/sdk-logs": "0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-proto": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-proto/-/exporter-logs-otlp-proto-0.218.0.tgz", + "integrity": "sha512-1/noQNsp9gXD75HPzgjBrcF1+XTtry7pFAUfxVEJgg7mPv2AawKQuYkhMmJ8qjxz4Ubc3Y8bwvfxevXsKTq4cg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-logs": "0.218.0", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-grpc": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-grpc/-/exporter-metrics-otlp-grpc-0.218.0.tgz", + "integrity": "sha512-YapQ9vNMX0NSZF6LK5pWAFfjpJleV2O9uYWfYGeb/5F1Kb9rPGK8tZDMJFa/sOksgdFuflDvYuA0B4qjDB4fjQ==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.14.3", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-metrics": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-http": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-http/-/exporter-metrics-otlp-http-0.218.0.tgz", + "integrity": "sha512-bV7d2OuMpZu2+gAaxUAhzfZ0h3WVZk8ETQUEE3DNSntbTaMpuITjtm8I0rNyHFdm7Ax57K6ty7SgFXlBmOLIvQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-metrics": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-proto": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-proto/-/exporter-metrics-otlp-proto-0.218.0.tgz", + "integrity": "sha512-ubLddKjWULhla9YZRCj/rTBeppjJYE4e9w0icx5mTu3eFhWjQzbV75NYjXuIlEG+NJsBl6d+sTFw5Qu+oej4oQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-metrics": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-prometheus": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-prometheus/-/exporter-prometheus-0.218.0.tgz", + "integrity": "sha512-RT5oEyu1kddZJ1vt7/BUo5wV+P7hpNAESsR3dUd3+8deHuX7gWNoCOZn+SfDT+hJHlIJ5h/AxiCLXIrutswDJg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-metrics": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-grpc/-/exporter-trace-otlp-grpc-0.218.0.tgz", + "integrity": "sha512-3fXxVQEj9TNAFaCi79JeFKfeLd0sDtInaR3gaZDVlzNSPHtz8PZuCV34JKWjD4XXzT20IdMe8IpX6mRVNDA4Tw==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.14.3", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.218.0.tgz", + "integrity": "sha512-8dqezsmPhtKitIK/eTipZhYl9EX2/gNQ5zUMhaz3uxEURwfkNf8IPvo6yNfrzbxdtpAOybS/+h7wmIWYqFSpiw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-proto/-/exporter-trace-otlp-proto-0.218.0.tgz", + "integrity": "sha512-r1Msf8SNLRmwh9J6XQ5uh82D7CdDWMNHnPB7LAVHjzut0TkSeKc5KcIvr4SvHvfk/xwN5gxC+VLKQ1k0o8PSPw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-zipkin/-/exporter-zipkin-2.7.1.tgz", + "integrity": "sha512-mfsD9bKAxcKrh5+y08TPodvClBO0CznBE3p79YAGnO81WI4LrdsGA65T53e4iTSbCalW4WaUpkbeJcbpyIUHfg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/instrumentation": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.218.0.tgz", + "integrity": "sha512-mIZil8Es+sYDK5m+DQiwAwF57F14TF2YlEqvIjZ/RQWcxDBwRGsKfdK2Tv65OU9meQKCMzSIFS9mxAcnAb6Bkg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "import-in-the-middle": "^3.0.0", + "require-in-the-middle": "^8.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-amqplib": { + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-amqplib/-/instrumentation-amqplib-0.65.0.tgz", + "integrity": "sha512-fF7fNHA59n3y23ROfst2EbSxmP+L3E+snZO6aMU4w4xD84mfejAivspIAsqa9arX5HZlBK6dslHz5dWGNp5D0A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-aws-lambda": { + "version": "0.70.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-aws-lambda/-/instrumentation-aws-lambda-0.70.0.tgz", + "integrity": "sha512-HT74cQxi/iiVEz5dRdNdfGCFzPFbkxSiwHfFPHDwkRcr1JKQqI6hm8qeXEvEiJ+36xIU1KkQMDfeThJ1ifnUiA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/aws-lambda": "^8.10.155" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-aws-sdk": { + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-aws-sdk/-/instrumentation-aws-sdk-0.73.0.tgz", + "integrity": "sha512-0INPkHbR6o4J3psE+ncwWaE7qtDpb2p+i+qfV82cfwYLCXavYCGosBZ/S4pOErDVJYIyQVIsNAHhaUgaL313SQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.34.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-bunyan": { + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-bunyan/-/instrumentation-bunyan-0.63.0.tgz", + "integrity": "sha512-z0xPSZ62d3I7sG2sUTyQ5/ES1RdESP2eOETiMLY9gPSp+HZwbsAyj7T/2sdZKYD+O2ajRHZEil+DBoUolf1ocQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.218.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@types/bunyan": "1.8.11" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-cassandra-driver": { + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-cassandra-driver/-/instrumentation-cassandra-driver-0.63.0.tgz", + "integrity": "sha512-jnVTOr3h/46UDalEwJ4ITux8UWwHmnsOik5WFs3JB/UrUj8Wad5eI+KpOEBuOUeOfPB9sce11qgVw3WXU2r+hg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.37.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-connect": { + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-connect/-/instrumentation-connect-0.61.0.tgz", + "integrity": "sha512-ZTQ0W3Lb7GJsOd+72cG8FJQKA5DqYfELJGLmChrJIezRSLfJIfofwKEGLX5rMtFJmwckpichQkBZWjid5dvnVQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/connect": "3.4.38" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-cucumber": { + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-cucumber/-/instrumentation-cucumber-0.34.0.tgz", + "integrity": "sha512-VK63Cm8osAdsSZpULPk+qnNktQUJzmnIOv2wuh79fV41WuTM38uOFC3s978/24pDkSljhN4EYCbPRLrAhXfKSA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/instrumentation-dataloader": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-dataloader/-/instrumentation-dataloader-0.35.0.tgz", + "integrity": "sha512-6x6UPP0tLzrdj15PIEN3qgp/WCcESCavHJfkIKoyLmy4UjGLF1KgEUMyD74xhbKGo426uvMbhvCgZC0ye8nO/A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-dns": { + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-dns/-/instrumentation-dns-0.61.0.tgz", + "integrity": "sha512-5D8xFaw9GXq9ZIOAvG7NPDivFfZWFAekLGFn1B7ppyhuAYBVHGybFpx4Q9BV1Uup3yzCdiD78KhyH7c3dKOYSw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-express": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-express/-/instrumentation-express-0.66.0.tgz", + "integrity": "sha512-G1xTh5M5shklMgIyUXWDjU2BakulKtcISaM4U5TyanvO7R4xbB3iC7YQ8QKegLXaOs81Ku8RlcIcbYRrz/82wQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fs": { + "version": "0.37.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fs/-/instrumentation-fs-0.37.0.tgz", + "integrity": "sha512-5mxhFuwAK0FFvisUdvuywaZ9ySMZ15HfbN6IpLn0gwRh9s1/QBcpLznQ/A15cZs1QFtBJ+JXIHdwY7WOD0c4Eg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-generic-pool": { + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-generic-pool/-/instrumentation-generic-pool-0.61.0.tgz", + "integrity": "sha512-tvp5PWnGRPHY/kz9Kg1IRLBL0qUAxMSNG623f+ZGEsvnCVEjr3tFyw1JGQzM+B3eZKkO+Dp/LYrtOSfb69D5lA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-graphql": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-graphql/-/instrumentation-graphql-0.66.0.tgz", + "integrity": "sha512-D4PN1tStj6rnOdofnt2xINJjtT1k2ockzaODrn76VEBZeqJ3QsEvKFfunB0EFAohO4xswVp14VAVmKNnGzA1Dw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-grpc": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-grpc/-/instrumentation-grpc-0.218.0.tgz", + "integrity": "sha512-kcDCNrC7IWNXEKQriGrwuh5jjbMFU5exOQzU9ufEY9UkACNcgYIdOd7XpX3IqZ3UPSnZyZtlwgfsbC5SNlEDbA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.218.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-hapi": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-hapi/-/instrumentation-hapi-0.64.0.tgz", + "integrity": "sha512-PCHgCICCDz7p9BgCU9gQz2smbqu4V4P8QtWJ7DLjL3bmzSdrgy6EGvecDg1YuhjBsoN08SR+y36hgdHkqCgrzQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-http": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-http/-/instrumentation-http-0.218.0.tgz", + "integrity": "sha512-x9djaqdzpT8WAboep1H9nCAQ1E+MMsm08TNfA02TqM3bNNddZeiim+E3KMWVQFaX6JpUy7V0nm/wfN/K2Em+Zw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/instrumentation": "0.218.0", + "@opentelemetry/semantic-conventions": "^1.29.0", + "forwarded-parse": "2.1.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-ioredis": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-ioredis/-/instrumentation-ioredis-0.66.0.tgz", + "integrity": "sha512-UfTAcaBKCzLUZ9opvfOLV4bH46XiNFqUsKykfPCIefDIxJ1iUYtMOucNaiZ+/kjQdPy5i6Ef5tk2IAjxol4X1w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/redis-common": "^0.38.3", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-kafkajs": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-kafkajs/-/instrumentation-kafkajs-0.27.0.tgz", + "integrity": "sha512-kl/C2AU4KZGHlMZD12nMFXcMjxSHvu5Q0UPSQ6IJeBfCadYuWgW+sWIa2JZVK/A0qRYm2cncekJyeBHQDyfUUg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.30.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-knex": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-knex/-/instrumentation-knex-0.62.0.tgz", + "integrity": "sha512-XgfhCAWwSqA0YnwaEKdpvQMavc90D3R65frhLCO9JNl867EulNps9tm6pjGIg+GiYuewn00gEzW4HQ5btgYxGQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-koa": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-koa/-/instrumentation-koa-0.66.0.tgz", + "integrity": "sha512-04x/z21WTMEfy3lUSr4aTj8WsTN3OZF901hJ+ciOwdwf7AK8UJTpZCXw6KQ3G4Vag56q1HoMihCONeWZLeld1g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.36.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0" + } + }, + "node_modules/@opentelemetry/instrumentation-lru-memoizer": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-lru-memoizer/-/instrumentation-lru-memoizer-0.62.0.tgz", + "integrity": "sha512-AlGKIdk6ZT7WmIozfUb2LjOcI3AhQrvAXKX0zi1cVcnw2QlRbVYyV5GTa2Th9ebuczVfWPaoPrmZw61zCp/czw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-memcached": { + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-memcached/-/instrumentation-memcached-0.61.0.tgz", + "integrity": "sha512-qiCR9Wovf5AHzn6g+LXhvwMmv2I6zhHz2I2tEHZMmBuD8c18bkJzGFxHoSBlxdApRT+SW13r9472dDMm4BRjgQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/memcached": "^2.2.6" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongodb": { + "version": "0.71.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongodb/-/instrumentation-mongodb-0.71.0.tgz", + "integrity": "sha512-6rwfVjAUY69CKkyGqzL+F5X7Nzw0+Ke9pOxk9xUPJpy8vracZxuQYF7rWu02sV1xOgi4u52449SuVhD+zaSiIA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongoose": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongoose/-/instrumentation-mongoose-0.64.0.tgz", + "integrity": "sha512-iCIqeUaERN8Uc5Rrtg4zvQ6d7z5JQ5iUmbnr/JHYPxAidDowmRc8/wDMJeMKRfLPTj336Zu0ec7rH/ak/4N9vw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql/-/instrumentation-mysql-0.64.0.tgz", + "integrity": "sha512-W1w76AJkP7i0uzzAe7nsCMWq4+EMSA550f1lAmxDPdQC5FnreNbRIm/tod2OS9gVrYvRrQXNkFmZJKGo4kzCnw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/mysql": "2.15.27" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql2": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql2/-/instrumentation-mysql2-0.64.0.tgz", + "integrity": "sha512-yTu0mYh/qJPSE86VmNLQww5uugDyvCS2KJIPfPtIk2ufoEUoHPsV6Iynnvmz588Moq04aBLxfTa/EtE4A2ykWA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@opentelemetry/sql-common": "^0.41.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-nestjs-core": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-nestjs-core/-/instrumentation-nestjs-core-0.64.0.tgz", + "integrity": "sha512-PW1ArxryMwF8/IXq1nzlQs7tmr/fWd1tf71AHevZT3Fm0hW7jRX9JEfYgIAcKDvmbqcJEr5K1224NEimrRPbuQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.30.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-net": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-net/-/instrumentation-net-0.62.0.tgz", + "integrity": "sha512-Gt2kzpACpmIad+q3LQqe8UNHuoVvdLuFpB6SN/A6xLPKNllb+ksPUYQhj1kXdZOpcFZNGKDXHyN+TUCVCk1TRw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-openai": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-openai/-/instrumentation-openai-0.16.0.tgz", + "integrity": "sha512-I0KKybyqqFOxSBgYKQNdR/EF3LvzSaAUT7Y75xkjbgscY+V8UWDpUbY68POLhUC3SKMlGvZmrTSxcQ+Y0vRhNw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.218.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.36.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-oracledb": { + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-oracledb/-/instrumentation-oracledb-0.43.0.tgz", + "integrity": "sha512-7Z4kOOdnrHX4S5gCeWhnnpWQwEd7weRjDhJA1nSrwTYtAcVWNjk5wsMKHBCTDCN0uJtA9T6PouZ+AKRYiS1Rrg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.34.0", + "@types/oracledb": "6.5.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pg": { + "version": "0.70.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-pg/-/instrumentation-pg-0.70.0.tgz", + "integrity": "sha512-g8WXwwOUXfjiEmATwjB/33QKE2AkIpNe4KIuJJh4djtXgCL0Wne+AzAfjuDIAspGvO1txQp8ibKsLd3SBmcvJA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.34.0", + "@opentelemetry/sql-common": "^0.41.2", + "@types/pg": "8.15.6", + "@types/pg-pool": "2.0.7" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pino": { + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-pino/-/instrumentation-pino-0.64.0.tgz", + "integrity": "sha512-+vDL7tZMZjkp8BpYMx/cL2/HWGsNUqKcRmAIIEaQu/6F44oM6xGDMCSqMKHdKCsH1+WW52EYdHbWkVGTF0KVsQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.218.0", + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-redis": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-redis/-/instrumentation-redis-0.66.0.tgz", + "integrity": "sha512-bVShkag6vP2VQO0cpA8CHjOohWbKNYLyjiwGkOnSAwou1TPc6pf9DssFUxwqN2XF1J4oqP0LVSvN9kZUzMecfA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/redis-common": "^0.38.3", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-restify": { + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-restify/-/instrumentation-restify-0.63.0.tgz", + "integrity": "sha512-Z73YxZpt0Y56uRu2pRWOjO5wXHvZqF46K4czoKRTGlUifzzFmUZxyOeAAECACuMRSLZmZ394WJin0MDgU9iW9w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-router": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-router/-/instrumentation-router-0.62.0.tgz", + "integrity": "sha512-0w8ok7GbXtYvX7TtLp72qQJKNyI7lD72Fy2NsNKIcQAv6TqGox5javFyXrIrCAtZHCONePxeAwAYj1Qd9si9OQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-runtime-node": { + "version": "0.31.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-runtime-node/-/instrumentation-runtime-node-0.31.0.tgz", + "integrity": "sha512-HkLsuEfUDahFiL/xFtEqJDMp7sp8ynOtA045bJi9nAH8CrPvljPW5SgJQb2mQqEYJQopbWYZ2lPqQEfj7bYgJg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.218.0", + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-socket.io": { + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-socket.io/-/instrumentation-socket.io-0.65.0.tgz", + "integrity": "sha512-dNvIbD40h0z69stQ9cIeAWRyy5WyQM1a1XnFthekc/oi/ipX4E6oYJBM4X2xKBxjZMTjdV5VshLoNeYMSBsnjw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-tedious": { + "version": "0.37.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-tedious/-/instrumentation-tedious-0.37.0.tgz", + "integrity": "sha512-cGLF46UsgeI1334atJxLO36yQlV7WXKg35Mp+e2NXo2vOTfIZTVqoKOzExVOTOwT4AQjfGVEDxyq5wXybUYXIA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/tedious": "^4.0.14" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-undici": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-undici/-/instrumentation-undici-0.28.0.tgz", + "integrity": "sha512-7nh4Gw7PhYtQm82FIJtWUhx6iZQJj0bdkKe2RQb3XNIyxu0o9rM1J5Xt083SsG2tCbQZpX9/mlDxhTrK1Z/lVQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "^0.218.0", + "@opentelemetry/semantic-conventions": "^1.24.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.7.0" + } + }, + "node_modules/@opentelemetry/instrumentation-winston": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-winston/-/instrumentation-winston-0.62.0.tgz", + "integrity": "sha512-pr1U9ZV4RRy23qMVrRzebfxwDWjp44xA7sC0PAdeW9v4HDcfOr0ejdTJmIsBGvhkNHPBajfieaIF9b6/9wjErA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.218.0", + "@opentelemetry/instrumentation": "^0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.218.0.tgz", + "integrity": "sha512-ZwqpkNL5W7RyGJPDZ9g06DvKp8KFTWPJPN12anpMQYSKpTSU0z3EIZuPq9vPGpS8siFyOqDYDAuCwlNO9FqgbA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-transformer": "0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-grpc-exporter-base": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-grpc-exporter-base/-/otlp-grpc-exporter-base-0.218.0.tgz", + "integrity": "sha512-H/lCGJ536N98VpYJOaWTQOkv4Dx6TnmStK6Rqfu1W7KkFbPAx04hjdYEMZF/YbnHzPUSIK4kM6OE2GKGBTpV9A==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.14.3", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/otlp-transformer": "0.218.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.218.0.tgz", + "integrity": "sha512-CFaKH87WAzjuJ4awowTTLzUvMfaRfiOFG5+qm5S5ncyalRtN4ecQ+YmuANJSCrVPuvZFEkUgKhBPBndxi3rHsQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-logs": "0.218.0", + "@opentelemetry/sdk-metrics": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/propagator-b3": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-2.7.1.tgz", + "integrity": "sha512-RJid6E2CKyeGfKBzXKF21ejabGMHypFkPAh3qZ+NvI+SGjuIye79t3PmiqcDgtRzdKH6ynXzbfslQ8DfpRUg2A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/propagator-jaeger": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-2.7.1.tgz", + "integrity": "sha512-KMjVBHzP4N60bOzxja76M1F1hZZ43lGPga5ix+mkv9+kk1nx9SbkxSvJsMbuVUxdPQmsPTqGShmhN8ulrMOg6Q==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/redis-common": { + "version": "0.38.3", + "resolved": "https://registry.npmjs.org/@opentelemetry/redis-common/-/redis-common-0.38.3.tgz", + "integrity": "sha512-VCghU1JYs/4gP6Gqf/xro9MEsZ7LrMv2uONVsaESKL38ZOB9BqnI98FfS23wjMnHlpuE+TTaWSoAVNpTwYXzjw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + } + }, + "node_modules/@opentelemetry/resource-detector-alibaba-cloud": { + "version": "0.33.8", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-alibaba-cloud/-/resource-detector-alibaba-cloud-0.33.8.tgz", + "integrity": "sha512-RnSB/uxkElny0/WBFEtIG2HRG0cpSNTRdE+YSB7Poa+uljK+ddCacEZYz/PMgZh+cs586XstJQxdyjz0jtcAug==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-aws": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-aws/-/resource-detector-aws-2.18.0.tgz", + "integrity": "sha512-wyMM4UoRuHvI2KjqnTzvyW8Yv7MKRGA+I78Xti6gTEw7hBhqXU1SRo+f9KrsQfeeiOn+TkDuvxavuaAQbD3i6g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-azure": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-azure/-/resource-detector-azure-0.26.0.tgz", + "integrity": "sha512-7KxF7mlwI2nKja/iEdwPqOaS0QAJbhT9ye4DeYZnXdOS/4phfonk5nSmyGDBYhBL7J30MPL91oZNuGYRKXZAXA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/semantic-conventions": "^1.37.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-container": { + "version": "0.8.9", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-container/-/resource-detector-container-0.8.9.tgz", + "integrity": "sha512-Xd2C4HjW9hl75iqZT7tQNy2yRBUqNucq2O9+e0FJRNkbiItInYVMzc0S0KDXcx/vZBwNmlrKS3R0uLCU9ULsGA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-gcp": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-gcp/-/resource-detector-gcp-0.53.0.tgz", + "integrity": "sha512-RCV31v23ZwZfYR3LPkuORHTHIOvfm3hZBT7hAzSO0+oAIrG/Dm0ld5tV4lYNO05GjI7sHQdRcbSqzEYAvQcQuw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "gcp-metadata": "^8.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.7.1.tgz", + "integrity": "sha512-DeT6KKolmC4e/dRQvMQ/RwlnzhaqeiFOXY5ngoOPJ07GgVVKxZOg9EcrNZb5aTzUn+iCrJldAgOfQm1O/QfPAQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-logs": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.218.0.tgz", + "integrity": "sha512-QvnNdugatFTVCJXH0Mcu7GOOJSylA9j127kIezOE4YwTI4YbowRons2K4WZTv5FMS8T4q9P0NdaRHdkSmeAIag==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.7.1.tgz", + "integrity": "sha512-MpDJdkiFDs3Pm1RHO3KByuZbuBdJEXEAkiC0+yJdsZGVCdf1RpHR6n+LHDcS7ffmfrt5kVCzJSCfm4z2C7v0uQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.9.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-node": { + "version": "0.218.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-node/-/sdk-node-0.218.0.tgz", + "integrity": "sha512-tPMjHrLV5gsfNdYqoRHjeGbCAZBXXD9c1Qo/2ut7VwnUABDNh76xNxrT0SEhkIIJuCN45bbN1vZnYL1gY0IkOg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.218.0", + "@opentelemetry/configuration": "0.218.0", + "@opentelemetry/context-async-hooks": "2.7.1", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/exporter-logs-otlp-grpc": "0.218.0", + "@opentelemetry/exporter-logs-otlp-http": "0.218.0", + "@opentelemetry/exporter-logs-otlp-proto": "0.218.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.218.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", + "@opentelemetry/exporter-metrics-otlp-proto": "0.218.0", + "@opentelemetry/exporter-prometheus": "0.218.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.218.0", + "@opentelemetry/exporter-trace-otlp-http": "0.218.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.218.0", + "@opentelemetry/exporter-zipkin": "2.7.1", + "@opentelemetry/instrumentation": "0.218.0", + "@opentelemetry/otlp-exporter-base": "0.218.0", + "@opentelemetry/propagator-b3": "2.7.1", + "@opentelemetry/propagator-jaeger": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/sdk-logs": "0.218.0", + "@opentelemetry/sdk-metrics": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1", + "@opentelemetry/sdk-trace-node": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.7.1.tgz", + "integrity": "sha512-NAYIlsF8MPUsKqJMiDQJTMPOmlbawC1Iz/omMLygZ1C9am8fTKYjTaI+OZM+WTY3t3Glo0wnOg/6/pac6RGPPw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.7.1", + "@opentelemetry/resources": "2.7.1", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.7.1.tgz", + "integrity": "sha512-pCpQxU68lV+I9s9svqMyVu5iHdDDUnqUpSxqwyCU8A9ejEsSnMPCbearwsUO4yk08ZJzAIUCFuReMdVQvHrdvg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/context-async-hooks": "2.7.1", + "@opentelemetry/core": "2.7.1", + "@opentelemetry/sdk-trace-base": "2.7.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.41.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.41.1.tgz", + "integrity": "sha512-/UhIkaZgPutTFmQ7RnIJGgDXZmtEJ7Dvi86xNTFWcnRxVRNk/aotsqDJYeEvDP+FSMB2SdW+pQzNMcWP0rwuNA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sql-common": { + "version": "0.41.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/sql-common/-/sql-common-0.41.2.tgz", + "integrity": "sha512-4mhWm3Z8z+i508zQJ7r6Xi7y4mmoJpdvH0fZPFRkWrdp5fq7hhZ2HhYokEOLkfqSMgPR4Z9EyB3DBkbKGOqZiQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.2.tgz", + "integrity": "sha512-pa0vFRuws4wkvaXKK1uXZMAwAX4/t8ANaJo45iw/oQHNQ9q5xUzwgFmVJGXiga2BeN+zpX7Vf9vmsiIa2J+MUw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.1.tgz", + "integrity": "sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==", + "license": "BSD-3-Clause" + }, + "node_modules/@types/aws-lambda": { + "version": "8.10.161", + "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.161.tgz", + "integrity": "sha512-rUYdp+MQwSFocxIOcSsYSF3YYYC/uUpMbCY/mbO21vGqfrEYvNSoPyKYDj6RhXXpPfS0KstW9RwG3qXh9sL7FQ==", + "license": "MIT" + }, + "node_modules/@types/bunyan": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/@types/bunyan/-/bunyan-1.8.11.tgz", + "integrity": "sha512-758fRH7umIMk5qt5ELmRMff4mLDlN+xyYzC+dkPTdKwbSkJFvz6xwyScrytPU0QIBbRRwbiE8/BIg8bpajerNQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/memcached": { + "version": "2.2.10", + "resolved": "https://registry.npmjs.org/@types/memcached/-/memcached-2.2.10.tgz", + "integrity": "sha512-AM9smvZN55Gzs2wRrqeMHVP7KE8KWgCJO/XL5yCly2xF6EKa4YlbpK+cLSAH4NG/Ah64HrlegmGqW8kYws7Vxg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/mysql": { + "version": "2.15.27", + "resolved": "https://registry.npmjs.org/@types/mysql/-/mysql-2.15.27.tgz", + "integrity": "sha512-YfWiV16IY0OeBfBCk8+hXKmdTKrKlwKN1MNKAPBu5JYxLwBEZl7QzeEpGnlZb3VMGJrrGmB84gXiH+ofs/TezA==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "25.8.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.8.0.tgz", + "integrity": "sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ==", + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/@types/oracledb": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/@types/oracledb/-/oracledb-6.5.2.tgz", + "integrity": "sha512-kK1eBS/Adeyis+3OlBDMeQQuasIDLUYXsi2T15ccNJ0iyUpQ4xDF7svFu3+bGVrI0CMBUclPciz+lsQR3JX3TQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/pg": { + "version": "8.15.6", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.15.6.tgz", + "integrity": "sha512-NoaMtzhxOrubeL/7UZuNTrejB4MPAJ0RpxZqXQf2qXuVlTPuG6Y8p4u9dKRaue4yjmC7ZhzVO2/Yyyn25znrPQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "node_modules/@types/pg-pool": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/pg-pool/-/pg-pool-2.0.7.tgz", + "integrity": "sha512-U4CwmGVQcbEuqpyju8/ptOKg6gEC+Tqsvj2xS9o1g71bUh8twxnC6ZL5rZKCsGN0iyH0CwgUyc9VR5owNQF9Ng==", + "license": "MIT", + "dependencies": { + "@types/pg": "*" + } + }, + "node_modules/@types/tedious": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/@types/tedious/-/tedious-4.0.14.tgz", + "integrity": "sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/body-parser": { + "version": "1.20.5", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.15.1", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz", + "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/cjs-module-lexer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", + "integrity": "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==", + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.5", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.15.1", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", + "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/forwarded-parse": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz", + "integrity": "sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==", + "license": "MIT" + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.4.tgz", + "integrity": "sha512-bTIgTsM2bWn3XklZISBTQX7ZSddGW+IO3bMdGaemHZ3tbqExMENHLx6kKZ/KlejgrMtj8q7wBItt51yegqalrA==", + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gcp-metadata": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz", + "integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==", + "license": "Apache-2.0", + "dependencies": { + "gaxios": "^7.0.0", + "google-logging-utils": "^1.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/google-logging-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", + "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz", + "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/import-in-the-middle": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.0.1.tgz", + "integrity": "sha512-pYkiyXVL2Mf3pozdlDGV6NAObxQx13Ae8knZk1UJRJ6uRW/ZRmTGHlQYtrsSl7ubuE5F8CD1z+s1n4RHNuTtuA==", + "license": "Apache-2.0", + "dependencies": { + "acorn": "^8.15.0", + "acorn-import-attributes": "^1.9.5", + "cjs-module-lexer": "^2.2.0", + "module-details-from-path": "^1.0.4" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/kafkajs": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/kafkajs/-/kafkajs-2.2.4.tgz", + "integrity": "sha512-j/YeapB1vfPT2iOIUn/vxdyKEuhuY2PxMBvf5JWux6iSaukAccrMtXEY/Lb7OvavDhOWME589bpLrEdnVHjfjA==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/module-details-from-path": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/nodemon": { + "version": "2.0.22", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", + "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", + "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", + "license": "MIT" + }, + "node_modules/pg": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.20.0.tgz", + "integrity": "sha512-ldhMxz2r8fl/6QkXnBD3CR9/xg694oT6DZQ2s6c/RI28OjtSOpxnPrUCGOBJ46RCUxcWdx3p6kw/xnDHjKvaRA==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.12.0", + "pg-pool": "^3.13.0", + "pg-protocol": "^1.13.0", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.3.0" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.3.0.tgz", + "integrity": "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.12.0.tgz", + "integrity": "sha512-U7qg+bpswf3Cs5xLzRqbXbQl85ng0mfSV/J0nnA31MCLgvEaAo7CIhmeyrmJpOr7o+zm0rXK+hNnT5l9RHkCkQ==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.13.0.tgz", + "integrity": "sha512-gB+R+Xud1gLFuRD/QgOIgGOBE2KCQPaPwkzBBGC9oG69pHTkhQeIuejVIk3/cnDyX39av2AxomQiyPT13WKHQA==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.13.0.tgz", + "integrity": "sha512-zzdvXfS6v89r6v7OcFCHfHlyG/wvry1ALxZo4LqgUoy7W9xhBDMaqOuMiF3qEV45VqsN6rdlcehHrfDtlCPc8w==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protobufjs": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.9.tgz", + "integrity": "sha512-Od4muIm3HW1AouyHF5lONOf1FWo3hY1NbFDoy191X9GzhpgW1clCoaFjfVs2rKJNFYpTNJbje4cbAIDBZJ63ZA==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/qs": { + "version": "6.15.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", + "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", + "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-in-the-middle": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-8.0.1.tgz", + "integrity": "sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "module-details-from-path": "^1.0.3" + }, + "engines": { + "node": ">=9.3.0 || >=8.10.0 <9.0.0" + } + }, + "node_modules/require-in-the-middle/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/require-in-the-middle/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/simple-update-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", + "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yaml": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/example-apps/otel-exporter-test/package.json b/example-apps/otel-exporter-test/package.json new file mode 100644 index 0000000000..5559a9202c --- /dev/null +++ b/example-apps/otel-exporter-test/package.json @@ -0,0 +1,40 @@ +{ + "name": "otel-exporter-test", + "version": "1.0.0", + "description": "Sample app for testing OpenTelemetry exporter with Instana (HTTP, PostgreSQL, Kafka)", + "main": "app.js", + "scripts": { + "start": "NODE_OPTIONS='--require ./node_modules/@instana/collector/src/immediate' node app.js", + "start-otel": "nodemon -r ./tracing.js app.js" + }, + "keywords": [ + "opentelemetry", + "instana", + "tracing", + "postgresql", + "kafka" + ], + "author": "", + "license": "MIT", + "dependencies": { + "@instana/collector": "file:../../packages/collector", + "express": "^4.18.2", + "pg": "^8.11.0", + "kafkajs": "^2.2.4", + "@opentelemetry/api": "latest", + "@opentelemetry/sdk-trace-node": "latest", + "@opentelemetry/sdk-trace-base": "latest", + "@opentelemetry/exporter-trace-otlp-http": "latest", + "@opentelemetry/instrumentation": "latest", + "@opentelemetry/auto-instrumentations-node": "latest", + "@opentelemetry/instrumentation-http": "latest", + "@opentelemetry/instrumentation-express": "latest", + "@opentelemetry/instrumentation-pg": "latest", + "@opentelemetry/instrumentation-kafkajs": "latest", + "@opentelemetry/resources": "latest", + "@opentelemetry/semantic-conventions": "latest" + }, + "devDependencies": { + "nodemon": "^2.0.22" + } +} diff --git a/example-apps/otel-exporter-test/tracing.js b/example-apps/otel-exporter-test/tracing.js new file mode 100644 index 0000000000..b464300aea --- /dev/null +++ b/example-apps/otel-exporter-test/tracing.js @@ -0,0 +1,91 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +const { diag, DiagConsoleLogger, DiagLogLevel } = require('@opentelemetry/api'); +const { resourceFromAttributes } = require('@opentelemetry/resources'); +const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions'); +const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node'); +const { BatchSpanProcessor, SimpleSpanProcessor, ConsoleSpanExporter } = require('@opentelemetry/sdk-trace-base'); +const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http'); +const { registerInstrumentations } = require('@opentelemetry/instrumentation'); +const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node'); +const { HttpInstrumentation } = require('@opentelemetry/instrumentation-http'); +const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express'); +const { PgInstrumentation } = require('@opentelemetry/instrumentation-pg'); +const { KafkaJsInstrumentation } = require('@opentelemetry/instrumentation-kafkajs'); + +// --------------------------------------------------- +// OTel diagnostics +// --------------------------------------------------- + +diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO); + +// --------------------------------------------------- +// Resource +// --------------------------------------------------- + +const resource = resourceFromAttributes({ + [SemanticResourceAttributes.SERVICE_NAME]: 'test-sample-nodejs-app' +}); + +// --------------------------------------------------- +// Exporters +// --------------------------------------------------- + +const instanaExporter = new OTLPTraceExporter({ + url: 'https://otlp-red-saas.instana.io:4318/v1/traces', + headers: { + 'x-instana-key': process.env.INSTANA_AGENT_KEY + } +}); + +const consoleExporter = new ConsoleSpanExporter(); + +// --------------------------------------------------- +// Provider +// --------------------------------------------------- + +const provider = new NodeTracerProvider({ + resource, + + spanProcessors: [new BatchSpanProcessor(instanaExporter), new SimpleSpanProcessor(consoleExporter)] +}); + +// --------------------------------------------------- +// Register provider +// --------------------------------------------------- + +provider.register(); + +// --------------------------------------------------- +// Instrumentations +// --------------------------------------------------- + +registerInstrumentations({ + tracerProvider: provider, + + instrumentations: [ + getNodeAutoInstrumentations({ + '@opentelemetry/instrumentation-fs': { + enabled: false + } + }), + + new HttpInstrumentation(), + new ExpressInstrumentation(), + new PgInstrumentation(), + new KafkaJsInstrumentation({ + producerHook: (span, info) => { + span.setAttribute('messaging.custom.producer', true); + span.setAttribute('messaging.destination.name', info.topic); + }, + consumerHook: (span, info) => { + span.setAttribute('messaging.custom.consumer', true); + span.setAttribute('messaging.destination.name', info.topic); + } + }) + ] +}); diff --git a/packages/collector/src/agentConnection.js b/packages/collector/src/agentConnection.js index 7ca47d69c5..63f9fa2669 100644 --- a/packages/collector/src/agentConnection.js +++ b/packages/collector/src/agentConnection.js @@ -10,7 +10,7 @@ const pathUtil = require('path'); const circularReferenceRemover = require('./util/removeCircular'); const agentOpts = require('./agent/opts'); const cmdline = require('./cmdline'); - +const otlpTransformer = require('@instana/core/src/tracing/otlpTransformer'); /** @typedef {import('@instana/core/src/core').InstanaBaseSpan} InstanaBaseSpan */ /** @type {import('@instana/core/src/core').GenericLogger} */ @@ -307,20 +307,55 @@ function checkWhetherResponseForPathIsOkay(path, cb) { exports.sendMetrics = function sendMetrics(data, cb) { cb = util.atMostOnce('callback for sendMetrics', cb); - sendData(`/com.instana.plugin.nodejs.${pidStore.pid}`, data, (err, body) => { + // Zeige nur die ersten 2 Keys für Debugging + const dataKeys = Object.keys(data); + const firstTwoKeys = {}; + for (let i = 0; i < Math.min(2, dataKeys.length); i++) { + firstTwoKeys[dataKeys[i]] = data[dataKeys[i]]; + } + + // logger.debug(`sendMetrics called with data (first 2 keys): ${JSON.stringify(firstTwoKeys)}`); + + // Transform Instana metrics to OTLP format + const otlpMetrics = otlpTransformer.transformMetrics(data); + + // Zeige nur die ersten 2 Metriken für Debugging + let otlpPreview = otlpMetrics; + if (otlpMetrics.resourceMetrics && otlpMetrics.resourceMetrics.length > 0) { + const firstResource = otlpMetrics.resourceMetrics[0]; + if (firstResource.scopeMetrics && firstResource.scopeMetrics.length > 0) { + const metrics = firstResource.scopeMetrics[0].metrics; + if (metrics && metrics.length > 2) { + otlpPreview = { + resourceMetrics: [ + { + ...firstResource, + scopeMetrics: [ + { + ...firstResource.scopeMetrics[0], + metrics: metrics.slice(0, 2) + } + ] + } + ], + totalMetrics: metrics.length + }; + } + } + } + + // logger.debug(`Transformed to OTLP (first 2 metrics) ${JSON.stringify(otlpPreview)}`); + + // Send directly without using sendData (which would transform again) + sendOtlpData('/v1/metrics', otlpMetrics, err => { if (err) { + logger.error('Error sending metrics:', err); cb(err, null); } else { - try { - // 2016-09-11 - // Older sensor versions will not repond with a JSON - // structure. Support a smooth update path. - body = JSON.parse(body); - } catch (e) { - body = []; - } - - cb(null, body); + // logger.debug('Metrics sent successfully'); + // OTLP endpoints don't return requests like the old Instana endpoint + // Always return empty array for compatibility + cb(null, []); } }); }; @@ -335,16 +370,16 @@ exports.sendSpans = function sendSpans(spans, cb) { if (err && !maxContentErrorHasBeenLogged && err instanceof PayloadTooLargeError) { logLargeSpans(spans); } else if (err) { - const spanInfo = getSpanLengthInfo(spans); + const spanInfo = spans; logger.debug(`Failed to send: ${JSON.stringify(spanInfo)}`); } else { - const spanInfo = getSpanLengthInfo(spans); + const spanInfo = spans; logger.debug(`Successfully sent: ${JSON.stringify(spanInfo)}`); } cb(err); }); - sendData(`/com.instana.plugin.nodejs/traces.${pidStore.pid}`, spans, callback, true); + sendData('/v1/traces', spans, callback, true); }; /** @@ -425,7 +460,8 @@ exports.sendTracingMetricsToAgent = function sendTracingMetricsToAgent(tracingMe cb(err); }); - sendData('/tracermetrics', tracingMetrics, callback); + // sendData('/tracermetrics', tracingMetrics, callback); + cb(); }; /** @@ -437,6 +473,11 @@ exports.sendTracingMetricsToAgent = function sendTracingMetricsToAgent(tracingMe */ function sendData(path, data, cb, ignore404 = false) { cb = util.atMostOnce(`callback for sendData: ${path}`, cb); + console.log(JSON.stringify(data)); + // Transform Instana format to OTLP format + // const otlpFormat = otlpTransformer(data); + + // console.log(JSON.stringify(otlpFormat)); const payloadAsString = JSON.stringify(data, circularReferenceRemover()); if (typeof logger.trace === 'function') { @@ -455,7 +496,7 @@ function sendData(path, data, cb, ignore404 = false) { const req = http.request( { host: agentOpts.host, - port: agentOpts.port, + port: 4318, path, method: 'POST', agent: http.agent, @@ -465,24 +506,26 @@ function sendData(path, data, cb, ignore404 = false) { } }, res => { - if (res.statusCode < 200 || res.statusCode >= 300) { - if (res.statusCode !== 404 || !ignore404) { - const statusCodeError = new Error( - `Failed to send data to agent via POST ${path}. Got status code ${res.statusCode}.` - ); - // @ts-ignore - statusCodeError.statusCode = res.statusCode; - cb(statusCodeError); - return; - } - } - res.setEncoding('utf8'); let responseBody = ''; res.on('data', chunk => { responseBody += chunk; }); res.on('end', () => { + console.log(responseBody); + + if (res.statusCode < 200 || res.statusCode >= 300) { + if (res.statusCode !== 404 || !ignore404) { + const statusCodeError = new Error( + `Failed to send data to agent via POST ${path}. Got status code ${res.statusCode}.` + ); + // @ts-ignore + statusCodeError.statusCode = res.statusCode; + cb(statusCodeError); + return; + } + } + cb(null, responseBody); }); } @@ -509,6 +552,86 @@ function sendData(path, data, cb, ignore404 = false) { req.end(); } +/** + * Sendet bereits transformierte OTLP-Daten an den Agent + * @param {string} path - API path + * @param {Object} otlpData - Already transformed OTLP data + * @param {(...args: *) => *} cb - Callback + * @param {boolean} [ignore404] + */ +function sendOtlpData(path, otlpData, cb, ignore404 = false) { + cb = util.atMostOnce(`callback for sendOtlpData: ${path}`, cb); + + const payloadAsString = JSON.stringify(otlpData, circularReferenceRemover()); + if (typeof logger.trace === 'function') { + logger.trace(`Sending OTLP data to ${path}.`); + } else { + logger.debug(`Sending OTLP data to ${path}, ${agentOpts}`); + } + + // Convert payload to a buffer to correctly identify content-length ahead of time. + const payload = Buffer.from(payloadAsString, 'utf8'); + if (payload.length > maxContentLength) { + const error = new PayloadTooLargeError(`Request payload is too large. Will not send data to agent. (POST ${path})`); + return setImmediate(cb.bind(null, error)); + } + + const req = http.request( + { + host: agentOpts.host, + port: 4318, + path, + method: 'POST', + agent: http.agent, + headers: { + 'Content-Type': 'application/json; charset=UTF-8', + 'Content-Length': payload.length + } + }, + res => { + res.setEncoding('utf8'); + let responseBody = ''; + res.on('data', chunk => { + responseBody += chunk; + }); + res.on('end', () => { + if (res.statusCode < 200 || res.statusCode >= 300) { + if (ignore404 && res.statusCode === 404) { + return cb(null, responseBody); + } + return cb( + new Error( + `Failed to send data to agent via POST ${path}. ` + + `Got status code ${res.statusCode}. Response: ${responseBody}` + ), + responseBody + ); + } + cb(null, responseBody); + }); + } + ); + + req.setTimeout(agentOpts.requestTimeout, function onTimeout() { + if (req.destroyed) { + return; + } + + req.destroy(new Error(`Sending data to agent via POST ${path}. Request timeout.`)); + }); + + req.on('error', err => { + if (req.destroyed) { + return; + } + + cb(new Error(`Send OTLP data to agent via POST ${path}. Request failed: ${err.message}`)); + }); + + req.write(payload); + req.end(); +} + exports.isConnected = function () { return isConnected; }; diff --git a/packages/core/src/tracing/OTLP_TRANSFORMATION_README.md b/packages/core/src/tracing/OTLP_TRANSFORMATION_README.md new file mode 100644 index 0000000000..20c3100393 --- /dev/null +++ b/packages/core/src/tracing/OTLP_TRANSFORMATION_README.md @@ -0,0 +1,94 @@ +# OTLP Transformation Architecture + +## Overview + +This document describes the architecture and implementation of the OpenTelemetry Protocol (OTLP) transformation layer in the Instana Node.js collector. When `INSTANA_OTLP_FORMAT=true`, spans are transformed from Instana's internal format to OTLP format before transmission to the backend. + +--- + +## Architecture + +``` +┌─────────────────────────────────────────────────────────────────┐ +│ Instrumentation Layer │ +│ (HTTP, Kafka, Database, etc.) │ +└────────────────────────┬────────────────────────────────────────┘ + │ Creates Instana Span + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ Backend Mapper (mapper.js) │ +│ Maps internal fields → backend field names │ +│ Example: operation → command (for Redis) │ +└────────────────────────┬────────────────────────────────────────┘ + │ Instana Span (backend format) + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ Span Buffer (spanBuffer.js) │ +│ Collects, batches, and manages span lifecycle │ +└────────────────────────┬────────────────────────────────────────┘ + │ Buffered Spans + ▼ + [OTLP_FORMAT Check] + │ + ┌───────────────┴───────────────┐ + │ true │ false + ▼ ▼ +┌─────────────────────┐ ┌──────────────────┐ +│ OTLP Converter │ │ Send as-is │ +│ (converter.js) │ │ (Instana fmt) │ +│ Instana → OTLP │ └──────────────────┘ +│ Direct Transform │ +└──────────┬──────────┘ + │ OTLP spans + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ OTLP Converter (instana-to-otel-converter.js) │ +│ │ +│ ┌──────────────────────────────────────────────────────────┐ │ +│ │ 1. Convert base span structure: │ │ +│ │ - Normalize trace ID (16 → 32-char hex) │ │ +│ │ - Normalize span ID (16-char hex) │ │ +│ │ - Convert timestamps (ms → nanoseconds) │ │ +│ │ - Generate span name from data │ │ +│ │ - Determine span kind (Instana k → OTLP kind) │ │ +│ └──────────────────────────────────────────────────────────┘ │ +│ ┌──────────────────────────────────────────────────────────┐ │ +│ │ 2. Transform span data to OTLP attributes: │ │ +│ │ - Apply unified span type configuration │ │ +│ │ - Map fields using semantic conventions │ │ +│ │ - Add additional attributes per span type │ │ +│ │ - Prefix unmapped fields │ │ +│ └──────────────────────────────────────────────────────────┘ │ +│ ┌──────────────────────────────────────────────────────────┐ │ +│ │ 3. Set span status: │ │ +│ │ - Check error count (ec > 0 → ERROR) │ │ +│ │ - Check HTTP status (4xx/5xx → ERROR, 2xx → OK) │ │ +│ │ - Default to OK if no errors │ │ +│ └──────────────────────────────────────────────────────────┘ │ +│ ┌──────────────────────────────────────────────────────────┐ │ +│ │ 4. Add service and error attributes: │ │ +│ │ - service.name from span data │ │ +│ │ - error and error.count if ec > 0 │ │ +│ └──────────────────────────────────────────────────────────┘ │ +└────────────────────────┬────────────────────────────────────────┘ + │ OTLP JSON + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ Agent Connection (agentConnection.js) │ +│ POST /v1/traces to localhost:4318 │ +└─────────────────────────────────────────────────────────────────┘ +``` + +--- + +## Transformation Steps + +### Step 1: Trace Collection (Instana Span Format) + +### Step 2: Unified Span Type Configuration + +### Step 3: Span Data Conversion + +### Step 4: Add Service and Error Attributes + +### Step 5: OTLP JSON Format \ No newline at end of file diff --git a/packages/core/src/tracing/backend_mappers/mapper.js b/packages/core/src/tracing/backend_mappers/mapper.js index 3e5ede3272..671c399090 100644 --- a/packages/core/src/tracing/backend_mappers/mapper.js +++ b/packages/core/src/tracing/backend_mappers/mapper.js @@ -47,6 +47,9 @@ const fieldMappings = { * @returns {import('../../core').InstanaBaseSpan} The transformed span. */ module.exports.transform = span => { + if (!span || !span.data) { + return span; + } // In most cases, `span.n` matches the key inside `span.data` (e.g., `span.n === 'redis'` → `span.data.redis`). // However, there are exceptions where `span.n` represents a higher-level concept or protocol, // while `span.data` contains one or more lower-level components. diff --git a/packages/core/src/tracing/converters/README.md b/packages/core/src/tracing/converters/README.md new file mode 100644 index 0000000000..c72a56d805 --- /dev/null +++ b/packages/core/src/tracing/converters/README.md @@ -0,0 +1,21 @@ + +## Usage + +### Command Line Interface + +```bash +cd packages/core/src/tracing/converters + +# Convert a single span +1. node instana-to-otel-converter.js examples/instana-http-span.json + +# Convert and save to file +2. node instana-to-otel-converter.js examples/instana-http-span.json output.json + +# Convert batch of spans +3. node instana-to-otel-converter.js examples/instana-batch-spans.json otel-batch.json + +# Pipe output +4. node instana-to-otel-converter.js examples/instana-kafka-span.json > kafka-otel.json +``` + diff --git a/packages/core/src/tracing/converters/examples/instana-batch-spans.json b/packages/core/src/tracing/converters/examples/instana-batch-spans.json new file mode 100644 index 0000000000..4caa3e0871 --- /dev/null +++ b/packages/core/src/tracing/converters/examples/instana-batch-spans.json @@ -0,0 +1,55 @@ +[ + { + "t": "abc123def456", + "s": "span001", + "n": "node.http.server", + "ts": 1716019200000, + "d": 150, + "ec": 0, + "data": { + "http": { + "method": "POST", + "url": "/api/orders", + "path": "/api/orders", + "host": "api.example.com", + "status": 201, + "protocol": "HTTP/1.1" + } + } + }, + { + "t": "abc123def456", + "s": "span002", + "p": "span001", + "n": "kafka", + "ts": 1716019200050, + "d": 30, + "ec": 0, + "data": { + "kafka": { + "service": "order-events", + "access": "send", + "partition": 2, + "offset": 98765 + } + } + }, + { + "t": "abc123def456", + "s": "span003", + "p": "span001", + "n": "node.http.client", + "ts": 1716019200100, + "d": 45, + "ec": 0, + "data": { + "http": { + "method": "GET", + "url": "https://payment-service.com/validate", + "path": "/validate", + "host": "payment-service.com", + "status": 200 + } + } + } +] diff --git a/packages/core/src/tracing/converters/examples/instana-http-span.json b/packages/core/src/tracing/converters/examples/instana-http-span.json new file mode 100644 index 0000000000..f1b57c0236 --- /dev/null +++ b/packages/core/src/tracing/converters/examples/instana-http-span.json @@ -0,0 +1,22 @@ +{ + "t": "abc123def456", + "s": "span001", + "p": "parent001", + "n": "node.http.server", + "ts": 1716019200000, + "d": 150, + "ec": 0, + "data": { + "http": { + "method": "GET", + "url": "https://api.example.com/users?page=1", + "path": "/users", + "params": "page=1", + "host": "api.example.com", + "status": 200, + "protocol": "HTTP/1.1", + "route": "/users" + }, + "service": "user-service" + } +} diff --git a/packages/core/src/tracing/converters/examples/instana-kafka-span.json b/packages/core/src/tracing/converters/examples/instana-kafka-span.json new file mode 100644 index 0000000000..840c7bcc0c --- /dev/null +++ b/packages/core/src/tracing/converters/examples/instana-kafka-span.json @@ -0,0 +1,19 @@ +{ + "t": "xyz789abc123", + "s": "span002", + "p": "parent002", + "n": "kafka", + "ts": 1716019300000, + "d": 50, + "ec": 0, + "data": { + "kafka": { + "service": "order-events", + "access": "send", + "partition": 0, + "offset": 12345, + "key": "order-123" + }, + "service": "order-service" + } +} diff --git a/packages/core/src/tracing/converters/examples/instana-mongo-span.json b/packages/core/src/tracing/converters/examples/instana-mongo-span.json new file mode 100644 index 0000000000..ac3b0aad3a --- /dev/null +++ b/packages/core/src/tracing/converters/examples/instana-mongo-span.json @@ -0,0 +1,26 @@ +{ + "t": "ab3b34be21dd538a", + "s": "999b361c42fe442e", + "p": "3b1680180c1ffdae", + "n": "mongo", + "k": 2, + "f": { + "e": "92217", + "h": "7e:ee:78:ff:fe:1a:91:85" + }, + "ec": 0, + "ts": 1779353083316, + "d": 2, + "data": { + "peer": { + "hostname": "127.0.0.1", + "port": 27017 + }, + "mongo": { + "command": "find", + "service": "127.0.0.1:27017", + "namespace": "testdb.users", + "filter": "{}" + } + } +} diff --git a/packages/core/src/tracing/converters/examples/otel-default-http-span.json b/packages/core/src/tracing/converters/examples/otel-default-http-span.json new file mode 100644 index 0000000000..6e767bbbd0 --- /dev/null +++ b/packages/core/src/tracing/converters/examples/otel-default-http-span.json @@ -0,0 +1,299 @@ +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'd7bd72619ff380d7', + traceState: undefined, + name: 'middleware - query', + id: '33798dc96f0792d6', + kind: 0, + timestamp: 1778768334405000, + duration: 236.208, + attributes: { 'express.name': 'query', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'd7bd72619ff380d7', + traceState: undefined, + name: 'middleware - expressInit', + id: '48b442298aa0115a', + kind: 0, + timestamp: 1778768334405000, + duration: 99.875, + attributes: { 'express.name': 'expressInit', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'd7bd72619ff380d7', + traceState: undefined, + name: 'middleware - jsonParser', + id: '242947ccb9e6b82e', + kind: 0, + timestamp: 1778768334405000, + duration: 86.584, + attributes: { 'express.name': 'jsonParser', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-dns', + version: '0.39.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'db0c608dae67f599', + traceState: undefined, + name: 'dns.lookup', + id: '3c9edacb78412263', + kind: 2, + timestamp: 1778768334416000, + duration: 46821.791, + attributes: { + 'peer.ipv6': '2606:4700:3030::6815:3b13', + 'peer[1].ipv6': '2606:4700:3031::ac43:a797', + 'peer[2].ipv4': '172.67.167.151', + 'peer[3].ipv4': '104.21.59.19' + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-net', + version: '0.39.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'c786de07ab9f8be8', + traceState: undefined, + name: 'tcp.connect', + id: '2c3718807529c7e5', + kind: 0, + timestamp: 1778768334416000, + duration: 103831.5, + attributes: { + 'net.transport': 'ip_tcp', + 'net.peer.name': 'jsonplaceholder.typicode.com', + 'net.peer.port': 443, + 'net.peer.ip': '2606:4700:3030::6815:3b13', + 'net.host.ip': '2401:4900:8fdd:98e6:fd5a:6451:7b74:a430', + 'net.host.port': 58804 + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-net', + version: '0.39.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'db0c608dae67f599', + traceState: undefined, + name: 'tls.connect', + id: 'c786de07ab9f8be8', + kind: 0, + timestamp: 1778768334416000, + duration: 306355.875, + attributes: { + 'tls.protocol': 'TLSv1.3', + 'tls.authorized': 'true', + 'tls.cipher.name': 'TLS_AES_256_GCM_SHA384', + 'tls.cipher.version': 'TLSv1.3', + 'tls.certificate.fingerprint': '36:89:D8:84:E5:9D:D0:B1:F5:9E:05:87:FE:6B:38:32:89:E3:84:39', + 'tls.certificate.serialNumber': 'ACD3B2348A6C8AC40E41A3D61B34D1E6', + 'tls.certificate.validFrom': 'Apr 2 19:56:43 2026 GMT', + 'tls.certificate.validTo': 'Jul 1 20:55:12 2026 GMT', + 'tls.alpnProtocol': 'http/1.1' + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-http', + version: '0.218.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: undefined, + traceState: undefined, + name: 'GET /external-api', + id: 'd7bd72619ff380d7', + kind: 1, + timestamp: 1778768334404000, + duration: 507906.5, + attributes: { + 'http.url': 'http://localhost:3000/external-api', + 'http.host': 'localhost:3000', + 'net.host.name': 'localhost', + 'http.method': 'GET', + 'http.scheme': 'http', + 'http.target': '/external-api', + 'http.user_agent': 'curl/8.7.1', + 'http.flavor': '1.1', + 'net.transport': 'ip_tcp', + 'net.host.ip': '::1', + 'net.host.port': 3000, + 'net.peer.ip': '::1', + 'net.peer.port': 58803, + 'http.status_code': 200, + 'http.status_text': 'OK', + 'http.route': '/external-api' + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'd7bd72619ff380d7', + traceState: undefined, + name: 'request handler - /external-api', + id: 'db0c608dae67f599', + kind: 0, + timestamp: 1778768334406000, + duration: 506331.959, + attributes: { + 'http.route': '/external-api', + 'express.name': '/external-api', + 'express.type': 'request_handler' + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', +'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-undici', + version: '0.6.0', + schemaUrl: undefined + }, + traceId: 'e3dccb57480b9e68e0f3b4963740393f', + parentId: 'db0c608dae67f599', + traceState: undefined, + name: 'GET', + id: '5c5cbe52980e18d4', + kind: 2, + timestamp: 1778768334415000, + duration: 497266.417, + attributes: { + 'http.request.method': 'GET', + 'http.request.method_original': 'GET', + 'url.full': 'https://jsonplaceholder.typicode.com/todos/1', + 'url.path': '/todos/1', + 'url.query': '', + 'url.scheme': 'https', + 'server.address': 'jsonplaceholder.typicode.com', + 'server.port': 443, + 'user_agent.original': 'node', + 'network.peer.address': '2606:4700:3030::6815:3b13', + 'network.peer.port': 443, + 'http.response.status_code': 200 + }, + status: { code: 0 }, + events: [], + links: [] +} diff --git a/packages/core/src/tracing/converters/examples/otel-default-kafka-span.json b/packages/core/src/tracing/converters/examples/otel-default-kafka-span.json new file mode 100644 index 0000000000..9345a74243 --- /dev/null +++ b/packages/core/src/tracing/converters/examples/otel-default-kafka-span.json @@ -0,0 +1,297 @@ + +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: 'd50dfd9499700818', + traceState: undefined, + name: 'middleware - query', + id: '8d446a0176fd21b0', + kind: 0, + timestamp: 1778768398325000, + duration: 31.834, + attributes: { 'express.name': 'query', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: 'd50dfd9499700818', + traceState: undefined, + name: 'middleware - expressInit', + id: '33f7ad90ebdca75d', + kind: 0, + timestamp: 1778768398325000, + duration: 27.792, + attributes: { 'express.name': 'expressInit', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: 'd50dfd9499700818', + traceState: undefined, + name: 'middleware - jsonParser', + id: '986e988066552a2b', + kind: 0, + timestamp: 1778768398325000, + duration: 7399.625, + attributes: { 'express.name': 'jsonParser', 'express.type': 'middleware' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-dns', + version: '0.39.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: '585cd14cd99ed3cf', + traceState: undefined, + name: 'dns.lookup', + id: '392279b20fbb1698', + kind: 2, + timestamp: 1778768398333000, + duration: 657, + attributes: { 'peer.ipv6': '::1', 'peer[1].ipv4': '127.0.0.1' }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-net', + version: '0.39.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: '585cd14cd99ed3cf', + traceState: undefined, + name: 'tcp.connect', + id: '9a8c30e17aab634a', + kind: 0, + timestamp: 1778768398333000, + duration: 3352, + attributes: { + 'net.transport': 'ip_tcp', + 'net.peer.name': 'localhost', + 'net.peer.port': 9092, + 'net.peer.ip': '127.0.0.1', + 'net.host.ip': '127.0.0.1', + 'net.host.port': 58830 + }, + status: { code: 0 }, + events: [], + links: [] +} +Kafka producer connected +-------------------------------- +Kafka message received +Topic: test-topic +Partition: 0 +Value: {"hello":"world"} +-------------------------------- +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-kafkajs', + version: '0.27.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: '159d3846bdd3174f', + traceState: undefined, + name: 'process test-topic', + id: '8700b5779765e79b', + kind: 4, + timestamp: 1778768398361000, + duration: 257, + attributes: { + 'messaging.destination.partition.id': '0', + 'messaging.system': 'kafka', + 'messaging.destination.name': 'test-topic', + 'messaging.operation.type': 'process', + 'messaging.operation.name': 'process', + 'messaging.kafka.message.key': 'sample-key', + 'messaging.kafka.offset': '1', + 'messaging.custom.consumer': true + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-kafkajs', + version: '0.27.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: '585cd14cd99ed3cf', + traceState: undefined, + name: 'send test-topic', + id: '159d3846bdd3174f', + kind: 3, + timestamp: 1778768398344000, + duration: 19197.583, + attributes: { + 'messaging.system': 'kafka', + 'messaging.destination.name': 'test-topic', + 'messaging.kafka.message.key': 'sample-key', + 'messaging.operation.name': 'send', + 'messaging.operation.type': 'send', + 'messaging.custom.producer': true + }, + status: { code: 0 }, + events: [], + links: [] +} +Kafka message sent +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-http', + version: '0.218.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: undefined, + traceState: undefined, + name: 'POST /kafka', + id: 'd50dfd9499700818', + kind: 1, + timestamp: 1778768398324000, + duration: 39338.75, + attributes: { + 'http.url': 'http://localhost:3000/kafka', + 'http.host': 'localhost:3000', + 'net.host.name': 'localhost', + 'http.method': 'POST', + 'http.scheme': 'http', + 'http.target': '/kafka', + 'http.user_agent': 'curl/8.7.1', + 'http.request_content_length_uncompressed': 17, + 'http.flavor': '1.1', + 'net.transport': 'ip_tcp', + 'net.host.ip': '::1', + 'net.host.port': 3000, + 'net.peer.ip': '::1', + 'net.peer.port': 58828, + 'http.status_code': 200, + 'http.status_text': 'OK', + 'http.route': '/kafka' + }, + status: { code: 0 }, + events: [], + links: [] +} +{ + resource: { + attributes: { + 'service.name': 'test-sample-nodejs-app', + 'telemetry.sdk.language': 'nodejs', + 'telemetry.sdk.name': 'opentelemetry', + 'telemetry.sdk.version': '1.23.0' + } + }, + instrumentationScope: { + name: '@opentelemetry/instrumentation-express', + version: '0.66.0', + schemaUrl: undefined + }, + traceId: '4c7492000e7fefb6ae4fd3d823909107', + parentId: 'd50dfd9499700818', + traceState: undefined, + name: 'request handler - /kafka', + id: '585cd14cd99ed3cf', + kind: 0, + timestamp: 1778768398333000, + duration: 31378.5, + attributes: { + 'http.route': '/kafka', + 'express.name': '/kafka', + 'express.type': 'request_handler' + }, + status: { code: 0 }, + events: [], + links: [] +} \ No newline at end of file diff --git a/packages/core/src/tracing/converters/instana-to-otel-converter.js b/packages/core/src/tracing/converters/instana-to-otel-converter.js new file mode 100644 index 0000000000..f7ffb2323d --- /dev/null +++ b/packages/core/src/tracing/converters/instana-to-otel-converter.js @@ -0,0 +1,155 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +/* eslint-disable no-console */ + +/** + * Instana Span to OpenTelemetry Span Converter + * + * Converts Instana spans to OpenTelemetry format with proper OTLP structure. + * Entry point: convertBatch() called from spanBuffer.js + * + * This module now uses the unified function-based converter for better + * performance and maintainability. + * + * Usage: + * const { convertBatch } = require('./instana-to-otel-converter'); + * const otlpTraces = convertBatch(instanaSpans); + */ + +const fs = require('fs'); +const { convertInstanaSpanToOTLP, convertBatch: convertBatchFunctional } = require('./span-converter-util'); + +// ============================================================================ +// Type Definitions +// ============================================================================ + +/** + * @typedef {import('./otel-span').OtelSpan} OtelSpan + * @typedef {import('./otel-span').OtelAttribute} OtelAttribute + */ + +// ============================================================================ +// Wrapper Functions (for backward compatibility) +// ============================================================================ + +/** + * Converts an Instana span to OpenTelemetry format + * This is now a wrapper around the function-based converter + * + * @param {import('../../core').InstanaBaseSpan} instanaSpan - The Instana span + * @returns {OtelSpan} OpenTelemetry formatted span + */ +function convertInstanaToOtel(instanaSpan) { + return convertInstanaSpanToOTLP(instanaSpan); +} + +/** + * Converts multiple Instana spans to OTLP format with resourceSpans structure + * This is the main entry point called from spanBuffer.js + * + * @param {Array} instanaSpans - Array of Instana spans + * @returns {Object} OTLP traces object with resourceSpans + */ +function convertBatch(instanaSpans) { + return convertBatchFunctional(instanaSpans); +} + +// ============================================================================ +// CLI Interface (for testing/debugging) +// ============================================================================ + +/** + * Main CLI function + */ +function main() { + const args = process.argv.slice(2); + + if (args.length === 0 || args.includes('--help') || args.includes('-h')) { + console.log(` +Instana to OpenTelemetry Span Converter + +Usage: + node instana-to-otel-converter.js [output-file.json] + +Arguments: + input-file.json - JSON file containing Instana span(s) + output-file.json - Optional output file (defaults to stdout) + +Input Format: + - Single span object: { t: "...", s: "...", ... } + - Array of spans: [{ t: "...", s: "..." }, ...] + +Examples: + node instana-to-otel-converter.js instana-span.json + node instana-to-otel-converter.js instana-spans.json otel-spans.json + `); + process.exit(0); + } + + const inputFile = args[0]; + const outputFile = args[1]; + + // Read input file + if (!fs.existsSync(inputFile)) { + console.error(`Error: Input file not found: ${inputFile}`); + process.exit(1); + } + + let inputData; + try { + const fileContent = fs.readFileSync(inputFile, 'utf8'); + inputData = JSON.parse(fileContent); + } catch (error) { + console.error(`Error reading input file: ${error.message}`); + process.exit(1); + } + + // Convert spans + let outputData; + try { + if (Array.isArray(inputData)) { + outputData = convertBatch(inputData); + } else { + outputData = convertInstanaToOtel(inputData); + } + } catch (error) { + console.error(`Error converting spans: ${error.message}`); + process.exit(1); + } + + // Write output + const outputJson = JSON.stringify(outputData, null, 2); + + if (outputFile) { + try { + fs.writeFileSync(outputFile, outputJson, 'utf8'); + console.log(`✓ Converted ${Array.isArray(inputData) ? inputData.length : 1} span(s)`); + console.log(`✓ Output written to: ${outputFile}`); + } catch (error) { + console.error(`Error writing output file: ${error.message}`); + process.exit(1); + } + } else { + console.log(outputJson); + } +} + +// ============================================================================ +// Module Exports +// ============================================================================ + +module.exports = { + convertInstanaToOtel, + convertBatch +}; + +// Run CLI if executed directly +if (require.main === module) { + main(); +} + +// Made with Bob diff --git a/packages/core/src/tracing/converters/otel-span.d.ts b/packages/core/src/tracing/converters/otel-span.d.ts new file mode 100644 index 0000000000..eb91189a13 --- /dev/null +++ b/packages/core/src/tracing/converters/otel-span.d.ts @@ -0,0 +1,159 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +/** + * OpenTelemetry Span Type Definitions + * + * Type definitions for OpenTelemetry spans following the OTLP specification. + * These types are used when converting Instana spans to OpenTelemetry format. + */ + +/** + * OpenTelemetry Attribute Value + * Represents the value of an OTLP attribute, which can be of various types + */ +export interface OtelAttributeValue { + stringValue?: string; + boolValue?: boolean; + intValue?: number; + doubleValue?: number; + arrayValue?: object; + kvlistValue?: object; + bytesValue?: string; +} + +/** + * OpenTelemetry Attribute + * Key-value pair structure for span attributes + */ +export interface OtelAttribute { + /** The attribute key */ + key: string; + /** The attribute value */ + value: OtelAttributeValue; +} + +/** + * OpenTelemetry Resource + * Resource information associated with spans + */ +export interface OtelResource { + /** Resource attributes array */ + attributes: OtelAttribute[]; +} + +/** + * OpenTelemetry Span Status + * Represents the status of a span + */ +export interface OtelSpanStatus { + /** Status code (0=UNSET, 1=OK, 2=ERROR) */ + code?: number; + /** Status message */ + message?: string; +} + +/** + * OpenTelemetry Span Event + * Represents a time-stamped event in a span + */ +export interface OtelSpanEvent { + /** Event timestamp in nanoseconds since Unix epoch */ + timeUnixNano: string; + /** Event name */ + name: string; + /** Event attributes */ + attributes?: OtelAttribute[]; + /** Number of dropped attributes */ + droppedAttributesCount?: number; +} + +/** + * OpenTelemetry Span Link + * Links to other spans in distributed traces + */ +export interface OtelSpanLink { + /** Trace ID of the linked span */ + traceId: string; + /** Span ID of the linked span */ + spanId: string; + /** W3C trace state */ + traceState?: string; + /** Link attributes */ + attributes?: OtelAttribute[]; + /** Number of dropped attributes */ + droppedAttributesCount?: number; +} + +/** + * OpenTelemetry Span + * + * Represents a span in OpenTelemetry format following the OTLP specification. + * This is the main span structure used when converting from Instana format. + * + * @see https://opentelemetry.io/docs/specs/otlp/ + */ +export interface OtelSpan { + /** Trace ID (32 hex characters for 128-bit ID) */ + traceId?: string; + + /** Span ID (16 hex characters for 64-bit ID) */ + spanId?: string; + + /** W3C trace state */ + traceState?: string; + + /** Parent span ID (16 hex characters) */ + parentSpanId?: string; + + /** Span name */ + name?: string; + + /** + * Span kind + * - 0: UNSPECIFIED + * - 1: INTERNAL + * - 2: SERVER + * - 3: CLIENT + * - 4: PRODUCER + * - 5: CONSUMER + */ + kind?: number; + + /** Start time in nanoseconds since Unix epoch */ + startTimeUnixNano?: string; + + /** End time in nanoseconds since Unix epoch */ + endTimeUnixNano?: string; + + /** Span attributes as key-value pairs */ + attributes: Record; + + /** Number of dropped attributes */ + droppedAttributesCount?: number; + + /** Span events */ + events: OtelSpanEvent[]; + + /** Number of dropped events */ + droppedEventsCount?: number; + + /** Span links */ + links: OtelSpanLink[]; + + /** Number of dropped links */ + droppedLinksCount?: number; + + /** Span status */ + status?: OtelSpanStatus; + + /** + * Resource information + * Note: During conversion, this is attached to individual spans, + * but in the final OTLP format it's moved to the resourceSpans level + */ + resource?: OtelResource; +} + +// Made with Bob diff --git a/packages/core/src/tracing/converters/otlp-mapper.js b/packages/core/src/tracing/converters/otlp-mapper.js new file mode 100644 index 0000000000..f79f8a338e --- /dev/null +++ b/packages/core/src/tracing/converters/otlp-mapper.js @@ -0,0 +1,397 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +const { + convertSpanId, + convertTraceId, + convertSpanKind, + convertEndTime, + convertStartTime, + toUpperCase +} = require('./span-converter-util'); + +// OTLP LOOKUP MAP +const OTLP = { + http: { + REQUEST_METHOD: 'http.request.method', + RESPONSE_STATUS: 'http.response.status_code', + ROUTE: 'http.route', + STATUS_TEXT: 'http.status_text', + REQUEST_HEADER: 'http.request.header', + URL_FULL: 'url.full', + URL_PATH: 'url.path', + URL_QUERY: 'url.query', + URL_TEMPLATE: 'url.template', + SERVER_ADDRESS: 'server.address', + NETWORK_PROTOCOL: 'network.protocol.name', + ERROR_TYPE: 'error.type' + }, + + messaging: { + SYSTEM: 'messaging.system', + OPERATION_TYPE: 'messaging.operation.type', + DESTINATION_NAME: 'messaging.destination.name', + SERVER_ADDRESS: 'server.address', + CONSUMER_GROUP: 'messaging.consumer.group.name', + MESSAGE_ID: 'messaging.message.id', + MESSAGE_BODY_SIZE: 'messaging.message.body.size', + kafka: { + PARTITION: 'messaging.kafka.destination.partition', + OFFSET: 'messaging.kafka.message.offset', + MESSAGE_KEY: 'messaging.kafka.message.key' + }, + rabbitmq: { + ROUTING_KEY: 'messaging.rabbitmq.destination.routing_key', + MESSAGE_ROUTING_KEY: 'messaging.rabbitmq.message.routing_key' + }, + gcp: { + PROJECT_ID: 'gcp.project_id' + } + }, + + database: { + SYSTEM: 'db.system', + OPERATION: 'db.operation.name', + NAMESPACE: 'db.namespace', + STATEMENT: 'db.statement', + NAME: 'db.name', + USER: 'db.user', + COLLECTION: 'db.collection.name', + TABLE: 'db.sql.table', + SERVER_ADDRESS: 'server.address', + PEER_NAME: 'net.peer.name', + PEER_PORT: 'net.peer.port', + CONNECTION_STRING: 'db.connection_string' + }, + + rpc: { + SYSTEM: 'rpc.system', + METHOD: 'rpc.method', + SERVICE: 'rpc.service', + GRPC_STATUS: 'rpc.grpc.status_code', + GRPC_ERROR: 'rpc.grpc.status_message' + }, + + graphql: { + OPERATION_NAME: 'graphql.operation.name', + OPERATION_TYPE: 'graphql.operation.type' + }, + + log: { + BODY: 'log.body', + SEVERITY: 'log.severity', + FUNCTION: 'code.function' + }, + + cloud: { + REGION: 'cloud.region', + PROVIDER: 'cloud.provider', + gcp: { + PROJECT_ID: 'gcp.project_id', + STORAGE_BUCKET: 'gcp.storage.bucket', + STORAGE_OBJECT: 'gcp.storage.object', + STORAGE_SOURCE_BUCKET: 'gcp.storage.source.bucket', + STORAGE_DESTINATION_BUCKET: 'gcp.storage.destination.bucket', + STORAGE_SOURCE_OBJECT: 'gcp.storage.source.object', + STORAGE_DESTINATION_OBJECT: 'gcp.storage.destination.object' + }, + aws: { + S3_BUCKET: 'aws.s3.bucket', + S3_KEY: 'aws.s3.key', + KINESIS_STREAM: 'aws.kinesis.stream_name', + KINESIS_SHARD: 'aws.kinesis.shard_id', + KINESIS_SHARD_ITERATOR_TYPE: 'aws.kinesis.shard_iterator_type', + KINESIS_STARTING_SEQUENCE_NUMBER: 'aws.kinesis.starting_sequence_number', + KINESIS_EXPLICIT_HASH_KEY: 'aws.kinesis.explicit_hash_key' + }, + azure: { + STORAGE_ACCOUNT: 'az.storage.account.name', + CONTAINER: 'az.storage.container.name', + BLOB: 'az.storage.blob.name' + } + }, + + faas: { + NAME: 'faas.name', + INVOCATION_TYPE: 'faas.invocation_type' + }, + + network: { + PEER_NAME: 'net.peer.name', + PEER_PORT: 'net.peer.port' + } +}; + +// INSTANA -> OTLP MAPPING +const MAPPINGS = { + http: [ + { otlp: OTLP.http.REQUEST_METHOD, instanaKey: 'operation', transform: toUpperCase }, + { otlp: OTLP.http.REQUEST_METHOD, instanaKey: 'method', transform: toUpperCase }, + { otlp: OTLP.http.URL_PATH, instanaKey: 'endpoints' }, + { otlp: OTLP.http.SERVER_ADDRESS, instanaKey: 'connection' }, + { otlp: OTLP.http.URL_FULL, instanaKey: 'url' }, + { otlp: OTLP.http.RESPONSE_STATUS, instanaKey: 'status' }, + { otlp: OTLP.http.URL_QUERY, instanaKey: 'params' }, + { otlp: OTLP.http.REQUEST_HEADER, instanaKey: 'header' }, + { otlp: OTLP.http.URL_TEMPLATE, instanaKey: 'path_tpl' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + kafka: [ + { otlp: OTLP.messaging.SYSTEM, value: 'kafka' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'endpoints' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'service' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'operation' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'access' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + rabbitmq: [ + { otlp: OTLP.messaging.SYSTEM, value: 'rabbitmq' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'sort' }, + { otlp: OTLP.messaging.SERVER_ADDRESS, instanaKey: 'address' }, + { otlp: OTLP.messaging.rabbitmq.ROUTING_KEY, instanaKey: 'exchange' }, + { otlp: OTLP.messaging.rabbitmq.MESSAGE_ROUTING_KEY, instanaKey: 'key' } + ], + + nats: [ + { otlp: OTLP.messaging.SYSTEM, value: 'nats' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'sort' }, + { otlp: OTLP.messaging.SERVER_ADDRESS, instanaKey: 'address' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'subject' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + bull: [ + { otlp: OTLP.messaging.SYSTEM, value: 'bull' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'sort' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'queue' }, + { otlp: OTLP.messaging.MESSAGE_ID, instanaKey: 'messageId' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + sqs: [ + { otlp: OTLP.messaging.SYSTEM, value: 'aws.sqs' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'sort' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'type' }, + { otlp: OTLP.messaging.CONSUMER_GROUP, instanaKey: 'group' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'queue' }, + { otlp: OTLP.messaging.MESSAGE_BODY_SIZE, instanaKey: 'size' }, + { otlp: OTLP.messaging.MESSAGE_ID, instanaKey: 'messageId' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + sns: [ + { otlp: OTLP.messaging.SYSTEM, value: 'aws.sns' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'topic' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'subject' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'phone' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'target' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + gcps: [ + { otlp: OTLP.messaging.SYSTEM, value: 'gcp.pubsub' }, + { otlp: OTLP.messaging.OPERATION_TYPE, instanaKey: 'op' }, + { otlp: OTLP.messaging.gcp.PROJECT_ID, instanaKey: 'projid' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'top' }, + { otlp: OTLP.messaging.DESTINATION_NAME, instanaKey: 'sub' }, + { otlp: OTLP.messaging.MESSAGE_ID, instanaKey: 'messageId' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + pg: [ + { otlp: OTLP.database.SYSTEM, value: 'postgresql' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'stmt' }, + { otlp: OTLP.database.PEER_NAME, instanaKey: 'host' }, + { otlp: OTLP.database.PEER_PORT, instanaKey: 'port' }, + { otlp: OTLP.database.USER, instanaKey: 'user' }, + { otlp: OTLP.database.NAME, instanaKey: 'db' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + mysql: [ + { otlp: OTLP.database.SYSTEM, value: 'mysql' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'stmt' }, + { otlp: OTLP.database.PEER_NAME, instanaKey: 'host' }, + { otlp: OTLP.database.PEER_PORT, instanaKey: 'port' }, + { otlp: OTLP.database.USER, instanaKey: 'user' }, + { otlp: OTLP.database.NAME, instanaKey: 'db' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + mssql: [ + { otlp: OTLP.database.SYSTEM, value: 'mssql' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'stmt' }, + { otlp: OTLP.database.PEER_NAME, instanaKey: 'host' }, + { otlp: OTLP.database.PEER_PORT, instanaKey: 'port' }, + { otlp: OTLP.database.USER, instanaKey: 'user' }, + { otlp: OTLP.database.NAME, instanaKey: 'db' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + mongo: [ + { otlp: OTLP.database.SYSTEM, value: 'mongodb' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'command' }, + { otlp: OTLP.database.SERVER_ADDRESS, instanaKey: 'service' }, + { otlp: OTLP.database.NAMESPACE, instanaKey: 'namespace' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'json' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'filter' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + peer: [ + { otlp: OTLP.network.PEER_NAME, instanaKey: 'hostname' }, + { otlp: OTLP.network.PEER_PORT, instanaKey: 'port' } + ], + + redis: [ + { otlp: OTLP.database.SYSTEM, value: 'redis' }, + { otlp: OTLP.database.SERVER_ADDRESS, instanaKey: 'connection' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'operation' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + // subCommands — no OTLP key + ], + + couchbase: [ + { otlp: OTLP.database.SYSTEM, value: 'couchbase' }, + { otlp: OTLP.database.PEER_NAME, instanaKey: 'hostname' }, + { otlp: OTLP.database.COLLECTION, instanaKey: 'bucket' }, + // type — no OTLP key + { otlp: OTLP.database.STATEMENT, instanaKey: 'sql' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + elasticsearch: [ + { otlp: OTLP.database.SYSTEM, value: 'elasticsearch' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'action' }, + { otlp: OTLP.database.SERVER_ADDRESS, instanaKey: 'cluster' }, + { otlp: OTLP.database.SERVER_ADDRESS, instanaKey: 'endpoint' }, + { otlp: OTLP.database.PEER_NAME, instanaKey: 'address' }, + { otlp: OTLP.database.PEER_PORT, instanaKey: 'port' }, + { otlp: OTLP.database.COLLECTION, instanaKey: 'index' }, + { otlp: OTLP.database.NAMESPACE, instanaKey: 'type' }, + { otlp: OTLP.database.NAME, instanaKey: 'id' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'query' }, + // hits — no OTLP key + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + dynamodb: [ + { otlp: OTLP.database.SYSTEM, value: 'dynamodb' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'operation' }, + { otlp: OTLP.cloud.REGION, instanaKey: 'region' }, + { otlp: OTLP.database.NAME, instanaKey: 'table' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + db2: [ + { otlp: OTLP.database.SYSTEM, value: 'db2' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'stmt' }, + { otlp: OTLP.database.CONNECTION_STRING, instanaKey: 'dsn' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + memcached: [ + { otlp: OTLP.database.SYSTEM, value: 'memcached' }, + { otlp: OTLP.database.STATEMENT, instanaKey: 'key' }, + { otlp: OTLP.database.SERVER_ADDRESS, instanaKey: 'connection' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'operation' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + prisma: [ + { otlp: OTLP.database.SYSTEM, instanaKey: 'provider', value: 'other_sql' }, + { otlp: OTLP.database.COLLECTION, instanaKey: 'model' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'action' }, + { otlp: OTLP.database.CONNECTION_STRING, instanaKey: 'url' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + rpc: [ + { otlp: OTLP.rpc.METHOD, instanaKey: 'call' }, + { otlp: OTLP.rpc.SYSTEM, instanaKey: 'flavor' }, + { otlp: OTLP.network.PEER_NAME, instanaKey: 'host' }, + { otlp: OTLP.network.PEER_PORT, instanaKey: 'port' }, + { otlp: OTLP.rpc.GRPC_ERROR, instanaKey: 'error' } + ], + + graphql: [ + { otlp: OTLP.graphql.OPERATION_NAME, instanaKey: 'operationName' }, + { otlp: OTLP.graphql.OPERATION_TYPE, instanaKey: 'operationType' } + // fields — no OTLP key + // args — no OTLP key + // errors — no OTLP key + ], + + log: [ + { otlp: OTLP.log.BODY, instanaKey: 'message' }, + { otlp: OTLP.log.SEVERITY, instanaKey: 'level' } + ], + + gcs: [ + { otlp: OTLP.database.OPERATION, instanaKey: 'op' }, + { otlp: OTLP.cloud.gcp.STORAGE_BUCKET, instanaKey: 'bucket' }, + { otlp: OTLP.cloud.gcp.STORAGE_OBJECT, instanaKey: 'object' }, + { otlp: OTLP.cloud.gcp.PROJECT_ID, instanaKey: 'projectId' }, + // accessId — no OTLP key + { otlp: OTLP.cloud.gcp.STORAGE_SOURCE_BUCKET, instanaKey: 'sourceBucket' }, + { otlp: OTLP.cloud.gcp.STORAGE_SOURCE_OBJECT, instanaKey: 'sourceObject' }, + { otlp: OTLP.cloud.gcp.STORAGE_DESTINATION_BUCKET, instanaKey: 'destinationBucket' }, + { otlp: OTLP.cloud.gcp.STORAGE_DESTINATION_OBJECT, instanaKey: 'destinationObject' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + s3: [ + { otlp: OTLP.database.OPERATION, instanaKey: 'op' }, + { otlp: OTLP.cloud.aws.S3_BUCKET, instanaKey: 'bucket' }, + { otlp: OTLP.cloud.aws.S3_KEY, instanaKey: 'key' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + kinesis: [ + { otlp: OTLP.messaging.SYSTEM, value: 'aws.kinesis' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'op' }, + { otlp: OTLP.cloud.aws.KINESIS_STREAM, instanaKey: 'stream' }, + { otlp: OTLP.cloud.aws.KINESIS_EXPLICIT_HASH_KEY, instanaKey: 'record' }, + { otlp: OTLP.cloud.aws.KINESIS_SHARD_ITERATOR_TYPE, instanaKey: 'shardType' }, + { otlp: OTLP.cloud.aws.KINESIS_STARTING_SEQUENCE_NUMBER, instanaKey: 'startSequenceNumber' }, + { otlp: OTLP.cloud.aws.KINESIS_SHARD, instanaKey: 'shard' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + azstorage: [ + { otlp: OTLP.cloud.PROVIDER, value: 'azure' }, + { otlp: OTLP.database.OPERATION, instanaKey: 'op' }, + { otlp: OTLP.cloud.azure.STORAGE_ACCOUNT, instanaKey: 'accountName' }, + { otlp: OTLP.cloud.azure.CONTAINER, instanaKey: 'containerName' }, + { otlp: OTLP.cloud.azure.BLOB, instanaKey: 'blobName' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ], + + 'aws.lambda.invoke': [ + { otlp: OTLP.faas.NAME, instanaKey: 'function' }, + { otlp: OTLP.faas.INVOCATION_TYPE, instanaKey: 'type' }, + { otlp: OTLP.http.ERROR_TYPE, instanaKey: 'error' } + ] +}; + +const METADATA_MAPPINGS = { + t: { key: 'traceId', value: convertTraceId }, + s: { key: 'spanId', value: convertSpanId }, + p: { key: 'parentSpanId', value: convertSpanId }, + k: { key: 'kind', value: convertSpanKind }, + ts: { key: 'startTimeUnixNano', value: convertStartTime }, + d: { key: 'endTimeUnixNano', value: convertEndTime }, + // Transformer-based fields (require transformer context) + name: { key: 'name', getter: 'getSpanName' }, + status: { key: 'status', getter: 'getStatus' } +}; + +module.exports = { + MAPPINGS, + METADATA_MAPPINGS +}; diff --git a/packages/core/src/tracing/converters/span-converter-util.js b/packages/core/src/tracing/converters/span-converter-util.js new file mode 100644 index 0000000000..91e80ac255 --- /dev/null +++ b/packages/core/src/tracing/converters/span-converter-util.js @@ -0,0 +1,733 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +/** + * Unified Function-Based Span Converter + * + * This module combines the functionality of: + * - otel-map-functions.js (OTLP mapping with pure functions) + * - instana-to-otel-converter-utils.js (ID/timestamp conversion utilities) + * - transformers.js (protocol-specific logic, now as pure functions) + * + * Design Philosophy: + * - Pure functions instead of classes + * - Composition over inheritance + * - Data-driven configuration from otlp-mapper.js + * - No side effects, easier to test and reason about + */ + +const { MAPPINGS, METADATA_MAPPINGS } = require('./otlp-mapper'); + +// ============================================================================ +// ID and Timestamp Conversion Functions +// ============================================================================ + +/** + * Converts Instana trace ID to OTLP format (32-character hex string) + */ +function convertTraceId(instanaTraceId) { + if (!instanaTraceId) return '00000000000000000000000000000000'; + return String(instanaTraceId).padStart(32, '0'); +} + +/** + * Converts Instana span ID to OTLP format (16-character hex string) + */ +function convertSpanId(instanaSpanId) { + if (!instanaSpanId) return '0000000000000000'; + return String(instanaSpanId).padStart(16, '0'); +} + +/** + * Converts Instana timestamp to OTLP nanosecond format + */ +function convertTimestamp(timestamp, duration = 0) { + if (!timestamp) return '0'; + const totalMs = timestamp + duration; + return String(totalMs * 1000000); // Convert ms to ns +} + +/** + * Converts start timestamp to nanoseconds + */ +function convertStartTime(timestamp) { + return convertTimestamp(timestamp, 0); +} + +/** + * Converts end timestamp to nanoseconds (start + duration) + */ +function convertEndTime(span) { + return convertTimestamp(span.ts, span.d); +} + +// ============================================================================ +// Span Kind Conversion +// ============================================================================ + +const SpanKind = { + UNSPECIFIED: 0, + INTERNAL: 1, + SERVER: 2, + CLIENT: 3, + PRODUCER: 4, + CONSUMER: 5 +}; + +/** + * Determines OTLP span kind from Instana span + * k=1: Entry/Server, k=2: Exit/Client, k=3: Internal + */ +function convertSpanKind(instanaSpanKind) { + if (instanaSpanKind === 1) return SpanKind.SERVER; + if (instanaSpanKind === 2) return SpanKind.CLIENT; + if (instanaSpanKind === 3) return SpanKind.INTERNAL; + return SpanKind.UNSPECIFIED; +} + +// ============================================================================ +// Status Conversion +// ============================================================================ + +const StatusCode = { + UNSET: 0, + OK: 1, + ERROR: 2 +}; + +// ============================================================================ +// Value Transform Functions +// ============================================================================ + +/** + * Converts value to uppercase string + */ +function toUpperCase(value) { + return value ? String(value).toUpperCase() : null; +} + +/** + * Converts value to integer + */ +function toInteger(value) { + const num = parseInt(value, 10); + return isNaN(num) ? null : num; +} + +/** + * Combines host and port into address string + */ +function combineHostPort(data, keys) { + const [hostKey, portKey] = keys; + const host = data[hostKey]; + const port = data[portKey]; + if (!host) return null; + return port ? `${host}:${port}` : host; +} + +/** + * Generic multi-field combiner with custom separator + */ +function combineFields(data, keys, separator = ':') { + const values = keys.map(key => data[key]).filter(v => v !== null && v !== undefined); + return values.length > 0 ? values.join(separator) : null; +} + +// ============================================================================ +// OTLP Value Formatting +// ============================================================================ + +/** + * Formats a value into OTLP attribute value format + */ +function formatOTLPValue(value) { + if (typeof value === 'string') { + return { stringValue: value }; + } else if (typeof value === 'number') { + if (Number.isInteger(value)) { + return { intValue: value }; + } + return { doubleValue: value }; + } else if (typeof value === 'boolean') { + return { boolValue: value }; + } else if (typeof value === 'object' && value !== null) { + return { stringValue: JSON.stringify(value) }; + } + return { stringValue: String(value) }; +} + +// ============================================================================ +// Span Type Detection +// ============================================================================ + +/** + * Priority order for span type selection when multiple data keys exist + */ +const SPAN_TYPE_PRIORITY = [ + 'http', + 'kafka', + 'rabbitmq', + 'sqs', + 'sns', + 'nats', + 'bull', + 'gcps', + 'pg', + 'mysql', + 'mssql', + 'mongo', + 'redis', + 'couchbase', + 'elasticsearch', + 'dynamodb', + 'db2', + 'memcached', + 'rpc', + 'graphql', + 'gcs', + 's3', + 'kinesis', + 'azstorage', + 'aws.lambda.invoke', + 'peer' +]; + +/** + * Determines the primary span type from span data + */ +function getSpanType(instanaSpan) { + if (!instanaSpan?.data) return null; + + const dataKeys = Object.keys(instanaSpan.data); + + // Find first matching type in priority order + const matchedType = SPAN_TYPE_PRIORITY.find(type => dataKeys.includes(type)); + + if (matchedType) return matchedType; + + // Fallback to first available key + return dataKeys[0] || null; +} + +// ============================================================================ +// Mapping Application Functions +// ============================================================================ + +/** + * Applies a single mapping rule to span data + */ +function applyMapping(mapping, spanData) { + let value; + + // Case 1: Static value + if (mapping.value !== undefined && !mapping.instanaKey && !mapping.instanaKeys) { + value = mapping.value; + } else if (mapping.instanaKeys && Array.isArray(mapping.instanaKeys)) { + // Case 2: Multi-field mapping + if (mapping.transform) { + value = mapping.transform(spanData, mapping.instanaKeys); + } else { + value = combineFields(spanData, mapping.instanaKeys); + } + } else if (mapping.instanaKey) { + // Case 3: Single field with optional transform + const rawValue = spanData[mapping.instanaKey]; + if (rawValue === undefined || rawValue === null) { + return null; + } + value = mapping.transform ? mapping.transform(rawValue) : rawValue; + } else { + return null; + } + + // Skip null/undefined values + if (value === null || value === undefined) { + return null; + } + + // Return OTLP attribute format + return { + key: mapping.otlp, + value: formatOTLPValue(value) + }; +} + +/** + * Applies all mappings for a specific span type + */ +function applyMappingsForSpanType(spanType, spanData) { + const mappings = MAPPINGS[spanType]; + + if (!mappings || !Array.isArray(mappings)) { + return []; + } + + const attributes = []; + + mappings.forEach(mapping => { + const attribute = applyMapping(mapping, spanData); + if (attribute) { + attributes.push(attribute); + } + }); + + return attributes; +} + +/** + * Converts Instana span data to OTLP attributes + * Handles multiple data keys (e.g., mongo + peer) + */ +function convertSpanDataToOTLP(instanaSpan) { + if (!instanaSpan || !instanaSpan.data) { + return []; + } + + const allAttributes = []; + + // Process each data key + Object.entries(instanaSpan.data).forEach(([spanType, spanData]) => { + const attributes = applyMappingsForSpanType(spanType, spanData); + allAttributes.push(...attributes); + }); + + return allAttributes; +} + +// ============================================================================ +// Span Name Generation Functions +// ============================================================================ + +/** + * System name mappings for different span types + */ +const SYSTEM_NAMES = { + kafka: 'kafka', + rabbitmq: 'rabbitmq', + mongo: 'mongodb', + pg: 'postgresql', + mysql: 'mysql', + mssql: 'mssql', + redis: 'redis', + couchbase: 'couchbase', + elasticsearch: 'elasticsearch', + dynamodb: 'dynamodb', + db2: 'db2', + memcached: 'memcached' +}; + +/** + * Generates span name for HTTP spans + */ +function generateHttpSpanName(data) { + const method = data.method || data.operation || 'HTTP'; + const path = data.path || data.url || '/'; + return `${method.toUpperCase()} ${path}`; +} + +/** + * Generates span name for messaging spans + */ +function generateMessagingSpanName(data) { + const operation = data.operation || data.access || data.sort || 'messaging'; + const destination = data.service || data.topic || data.queue || data.subject || 'unknown'; + return `${operation} ${destination}`; +} + +/** + * Generates span name for database spans + */ +function generateDatabaseSpanName(spanType, data) { + const operation = data.command || data.operation || data.action || 'query'; + const systemName = SYSTEM_NAMES[spanType] || spanType; + return `${systemName}.${operation}`; +} + +/** + * Generates OTLP span name based on span type and data + */ +function generateSpanName(instanaSpan) { + const spanType = getSpanType(instanaSpan); + const data = instanaSpan.data?.[spanType]; + + if (!data) { + return instanaSpan.n || 'unknown'; + } + + // HTTP spans + if (spanType === 'http') { + return generateHttpSpanName(data); + } + + // Messaging spans + if (['kafka', 'rabbitmq', 'sqs', 'sns', 'nats', 'bull', 'gcps'].includes(spanType)) { + return generateMessagingSpanName(data); + } + + // Database spans + if ( + ['pg', 'mysql', 'mssql', 'mongo', 'redis', 'couchbase', 'elasticsearch', 'dynamodb', 'db2', 'memcached'].includes( + spanType + ) + ) { + return generateDatabaseSpanName(spanType, data); + } + + // Default: use span name + return instanaSpan.n || 'unknown'; +} + +// ============================================================================ +// Status Generation Functions +// ============================================================================ + +/** + * Generates status for HTTP spans + */ +function generateHttpStatus(span, data) { + const status = { code: StatusCode.UNSET }; + + // Check error count first + if (span.ec && span.ec > 0) { + status.code = StatusCode.ERROR; + status.message = data.error || 'Error occurred'; + } else if (data.status) { + const httpStatus = data.status; + if (httpStatus >= 400) { + status.code = StatusCode.ERROR; + status.message = `HTTP ${httpStatus}`; + } else if (httpStatus >= 200 && httpStatus < 300) { + status.code = StatusCode.OK; + } + } else { + status.code = StatusCode.OK; + } + + return status; +} + +/** + * Generates status for messaging spans + */ +function generateMessagingStatus(span, data) { + const status = { code: StatusCode.UNSET }; + + if (span.ec && span.ec > 0) { + status.code = StatusCode.ERROR; + status.message = data.error || 'Messaging error occurred'; + } else { + status.code = StatusCode.OK; + } + + return status; +} + +/** + * Generates status for database spans + */ +function generateDatabaseStatus(span, data) { + const status = { code: StatusCode.UNSET }; + + if (span.ec && span.ec > 0) { + status.code = StatusCode.ERROR; + status.message = data.error || 'Database operation failed'; + } else { + status.code = StatusCode.OK; + } + + return status; +} + +/** + * Generates OTLP status based on span type and data + */ +function generateSpanStatus(instanaSpan) { + const spanType = getSpanType(instanaSpan); + const data = instanaSpan.data?.[spanType] || {}; + + // HTTP spans + if (spanType === 'http') { + return generateHttpStatus(instanaSpan, data); + } + + // Messaging spans + if (['kafka', 'rabbitmq', 'sqs', 'sns', 'nats', 'bull', 'gcps'].includes(spanType)) { + return generateMessagingStatus(instanaSpan, data); + } + + // Database spans + if ( + ['pg', 'mysql', 'mssql', 'mongo', 'redis', 'couchbase', 'elasticsearch', 'dynamodb', 'db2', 'memcached'].includes( + spanType + ) + ) { + return generateDatabaseStatus(instanaSpan, data); + } + + // Default status + const status = { code: StatusCode.UNSET }; + if (instanaSpan.ec && instanaSpan.ec > 0) { + status.code = StatusCode.ERROR; + status.message = 'Error occurred'; + } else { + status.code = StatusCode.OK; + } + + return status; +} + +// ============================================================================ +// Metadata Transformation +// ============================================================================ + +/** + * Applies metadata transformations to convert Instana base fields to OTLP + */ +function applyMetadataTransformations(instanaSpan) { + const result = {}; + + Object.entries(METADATA_MAPPINGS).forEach(([instanaField, mapping]) => { + // Skip getter-based mappings (handled separately) + if (mapping.getter) { + return; + } + + const instanaValue = instanaSpan[instanaField]; + + // Skip if field doesn't exist (except optional parent) + if (instanaValue === undefined) { + if (instanaField === 'p') return; // Parent is optional + return; + } + + // Apply transformation + if (mapping.value) { + const transformedValue = mapping.value(instanaValue); + if (transformedValue !== null && transformedValue !== undefined) { + result[mapping.key] = transformedValue; + } + } + }); + + // Calculate end time from start + duration + if (instanaSpan.ts !== undefined && instanaSpan.d !== undefined) { + result.endTimeUnixNano = convertEndTime(instanaSpan); + } + + return result; +} + +// ============================================================================ +// Resource Attributes +// ============================================================================ + +/** + * Creates resource attributes for OTLP format + */ +function createResourceAttributes(instanaSpan) { + const attributes = []; + + // Service name + const serviceName = + instanaSpan.data?.service || process.env.OTEL_SERVICE_NAME || process.env.SERVICE_NAME || 'unknown-service'; + + attributes.push({ + key: 'service.name', + value: { stringValue: serviceName } + }); + + // SDK information + attributes.push( + { + key: 'telemetry.sdk.language', + value: { stringValue: 'nodejs' } + }, + { + key: 'telemetry.sdk.name', + value: { stringValue: '@instana/collector' } + }, + { + key: 'telemetry.sdk.version', + value: { stringValue: '3.0.0' } + } + ); + + return attributes; +} + +// ============================================================================ +// Main Conversion Function +// ============================================================================ + +/** + * Converts an Instana span to OpenTelemetry format + * This is the main entry point that orchestrates all conversion steps + */ +function convertInstanaSpanToOTLP(instanaSpan) { + if (!instanaSpan || typeof instanaSpan !== 'object') { + throw new Error('Invalid Instana span: must be an object'); + } + + // Step 1: Convert metadata (IDs, timestamps, kind) + const metadata = applyMetadataTransformations(instanaSpan); + + // Step 2: Generate span name + const name = generateSpanName(instanaSpan); + + // Step 3: Generate status + const status = generateSpanStatus(instanaSpan); + + // Step 4: Convert span data to attributes + const attributes = convertSpanDataToOTLP(instanaSpan); + + // Step 5: Create resource attributes + const resourceAttributes = createResourceAttributes(instanaSpan); + + // Step 6: Assemble OTLP span + const otelSpan = { + ...metadata, + name, + status, + attributes, + events: [], + links: [], + resource: { + attributes: resourceAttributes + } + }; + + // Clean up undefined values + Object.keys(otelSpan).forEach(key => { + if (otelSpan[key] === undefined) { + delete otelSpan[key]; + } + }); + + return otelSpan; +} + +/** + * Converts multiple Instana spans to OTLP format with resourceSpans structure + */ +function convertBatch(instanaSpans) { + if (!Array.isArray(instanaSpans)) { + throw new Error('Input must be an array of spans'); + } + + if (instanaSpans.length === 0) { + return { resourceSpans: [] }; + } + + // Convert all spans + const otelSpans = instanaSpans + .map(span => { + try { + return convertInstanaSpanToOTLP(span); + } catch (error) { + // eslint-disable-next-line no-console + console.error(`Error converting span: ${error.message}`); + return null; + } + }) + .filter(span => span !== null); + + // Group spans by resource attributes + const spansByResource = new Map(); + + otelSpans.forEach(otelSpan => { + const resourceKey = JSON.stringify(otelSpan.resource.attributes); + + if (!spansByResource.has(resourceKey)) { + spansByResource.set(resourceKey, { + resource: otelSpan.resource, + spans: [] + }); + } + + // Remove resource from individual span + const { resource, ...spanWithoutResource } = otelSpan; + spansByResource.get(resourceKey).spans.push(spanWithoutResource); + }); + + // Create OTLP ResourceSpans structure + const resourceSpans = Array.from(spansByResource.values()).map(group => ({ + resource: group.resource, + scopeSpans: [ + { + scope: { + name: '@instana/collector', + version: '3.0.0' + }, + spans: group.spans + } + ] + })); + + return { resourceSpans }; +} + +// ============================================================================ +// Module Exports +// ============================================================================ + +module.exports = { + // ID conversions + convertTraceId, + convertSpanId, + + // Timestamp conversions + convertTimestamp, + convertStartTime, + convertEndTime, + + // Span kind + convertSpanKind, + SpanKind, + + // Status + StatusCode, + + // Value transformers + toUpperCase, + toInteger, + combineHostPort, + combineFields, + + // OTLP formatting + formatOTLPValue, + + // Span type detection + getSpanType, + + // Mapping application + applyMapping, + applyMappingsForSpanType, + convertSpanDataToOTLP, + + // Span name generation + generateSpanName, + generateHttpSpanName, + generateMessagingSpanName, + generateDatabaseSpanName, + + // Status generation + generateSpanStatus, + generateHttpStatus, + generateMessagingStatus, + generateDatabaseStatus, + + // Metadata transformation + applyMetadataTransformations, + + // Resource attributes + createResourceAttributes, + + // Main conversion functions + convertInstanaSpanToOTLP, + convertBatch +}; + +// Made with Bob diff --git a/packages/core/src/tracing/otlpTransformer.js b/packages/core/src/tracing/otlpTransformer.js new file mode 100644 index 0000000000..36b9b2cfeb --- /dev/null +++ b/packages/core/src/tracing/otlpTransformer.js @@ -0,0 +1,251 @@ +/* + * (c) Copyright IBM Corp. 2026 + */ + +'use strict'; + +// Cached Resource information for Metrics (when no "from" field is present) +let cachedHostId = null; +let cachedPid = null; + +/** + * Sets the Host-ID for Resource Attributes + * @param {string} hostId - Host ID + */ +function setHostId(hostId) { + cachedHostId = hostId; +} + +/** + * Sets the PID for Resource Attributes + * @param {string|number} pid - Process ID + */ +function setPid(pid) { + cachedPid = String(pid); +} + +/** + * Creates Resource Attributes from Instana "from" field + * @param {Object} from - Instana from object + * @returns {Array} OTEL resource attributes + */ +function createResourceAttributes(from) { + const attributes = []; + + // Standard OTEL Resource Attributes + attributes.push({ + key: 'telemetry.sdk.language', + value: { stringValue: 'nodejs' } + }); + + attributes.push({ + key: 'telemetry.sdk.name', + value: { stringValue: '@instana/collector' } + }); + + // Service Name - support both OTEL_SERVICE_NAME (standard) and SERVICE_NAME (legacy) + const serviceName = process.env.OTEL_SERVICE_NAME || process.env.SERVICE_NAME || 'unknown-service'; + attributes.push({ + key: 'service.name', + value: { stringValue: serviceName } + }); + + // Use "from" field if present, otherwise cached values + const pid = from && from.e ? from.e : cachedPid; + const hostId = from && from.h ? from.h : cachedHostId; + + // Process PID + if (pid) { + attributes.push({ + key: 'process.pid', + value: { intValue: parseInt(pid, 10) } + }); + } + + // Host Name + if (hostId) { + attributes.push({ + key: 'host.name', + value: { stringValue: hostId } + }); + } + + return attributes; +} + +/** + * Flattens nested objects to a flat object with dot notation + * @param {Object} obj - Nested object + * @param {string} prefix - Prefix for the keys + * @returns {Object} Flat object + */ +function flattenObject(obj, prefix) { + prefix = prefix || ''; + const flattened = {}; + + Object.keys(obj).forEach(key => { + const value = obj[key]; + const newKey = prefix ? `${prefix}.${key}` : key; + + if (value === null || value === undefined) { + return; + } + + if (typeof value === 'object' && !Array.isArray(value)) { + // Recursively flatten nested objects + const nested = flattenObject(value, newKey); + Object.keys(nested).forEach(nestedKey => { + flattened[nestedKey] = nested[nestedKey]; + }); + } else if (typeof value === 'number' || typeof value === 'string' || typeof value === 'boolean') { + // Only take primitive values + flattened[newKey] = value; + } + }); + + return flattened; +} + +/** + * Transforms Instana Metrics to OTEL Format + * @param {Array|Object} instanaMetrics - Array or object of Instana metrics + * @returns {Object} OTEL metrics object + */ +function transformMetrics(instanaMetrics) { + // If it's an object, convert the values to an array + let metricsArray = instanaMetrics; + + if (!Array.isArray(instanaMetrics)) { + if (!instanaMetrics || typeof instanaMetrics !== 'object') { + return { + resourceMetrics: [] + }; + } + + // Flatten the nested object + const flattenedMetrics = flattenObject(instanaMetrics, ''); + + // Convert flat object to array of Metrics + metricsArray = Object.keys(flattenedMetrics).map(function (key) { + const value = flattenedMetrics[key]; + return { + name: key, + value: value, + timestamp: Date.now(), + unit: '', + from: instanaMetrics.from + }; + }); + } + + if (metricsArray.length === 0) { + return { + resourceMetrics: [] + }; + } + + // Group Metrics by Resource + const metricsByResource = new Map(); + + metricsArray.forEach(function (instanaMetric) { + const resourceKey = JSON.stringify(instanaMetric.from || {}); + + if (!metricsByResource.has(resourceKey)) { + metricsByResource.set(resourceKey, { + resource: instanaMetric.from, + metrics: [] + }); + } + + metricsByResource.get(resourceKey).metrics.push(instanaMetric); + }); + + // Create OTEL ResourceMetrics + const resourceMetrics = Array.from(metricsByResource.values()).map(function (group) { + const otelMetrics = group.metrics.map(function (metric) { + // Determine the metric type based on the value + let metricData; + if (typeof metric.value === 'number') { + metricData = { + sum: { + dataPoints: [ + { + asDouble: metric.value + } + ] + } + }; + } else if (typeof metric.value === 'string') { + // Strings as Gauge with String value (not standard OTLP, but for debugging) + metricData = { + gauge: { + dataPoints: [ + { + asDouble: 0, + attributes: [ + { + key: 'value', + value: { stringValue: metric.value } + } + ] + } + ] + } + }; + } else if (typeof metric.value === 'boolean') { + metricData = { + gauge: { + dataPoints: [ + { + asDouble: metric.value ? 1 : 0 + } + ] + } + }; + } else { + // Fallback for unknown types + metricData = { + sum: { + dataPoints: [ + { + asDouble: 0 + } + ] + } + }; + } + + return { + name: metric.name || 'unknown.metric', + ...metricData + }; + }); + + return { + resource: { + attributes: createResourceAttributes(group.resource) + }, + scopeMetrics: [ + { + scope: { + name: 'instrumentationScope', + version: '13.2' + }, + metrics: otelMetrics + } + ] + }; + }); + + return { + resourceMetrics: resourceMetrics + }; +} + +module.exports = { + transformMetrics, + setHostId, + setPid +}; + +// Made with Bob diff --git a/packages/core/src/tracing/spanBuffer.js b/packages/core/src/tracing/spanBuffer.js index f6bf5b19b9..1b25a8efbd 100644 --- a/packages/core/src/tracing/spanBuffer.js +++ b/packages/core/src/tracing/spanBuffer.js @@ -7,6 +7,7 @@ const tracingMetrics = require('./metrics'); const { transform } = require('./backend_mappers'); +const { convertBatch } = require('./converters/instana-to-otel-converter'); /** @type {import('../core').GenericLogger} */ let logger; @@ -456,10 +457,13 @@ function transmitSpans() { spans = []; batchingBuckets.clear(); + // Convert to OTLP format if enabled + const processedSpans = process.env.INSTANA_OTLP_FORMAT === 'true' ? convertBatch(spansToSend) : spansToSend; + // We restore the content of the spans array if sending them downstream was not successful. We do not restore // batchingBuckets, though. This is deliberate. In the worst case, we might miss some batching opportunities, but // since sending spans downstream will take a few milliseconds, even that will be rare (and it is acceptable). - downstreamConnection.sendSpans(spansToSend, function sendSpans(/** @type {Error} */ error) { + downstreamConnection.sendSpans(processedSpans, function sendSpans(/** @type {Error} */ error) { if (error) { logger.warn(`Failed to transmit spans, will retry in ${transmissionDelay} ms. ${error?.message} ${error?.stack}`); spans = spans.concat(spansToSend); diff --git a/packages/core/test/tracing/spanBuffer_test.js b/packages/core/test/tracing/spanBuffer_test.js index aa629b8e30..26a1611d94 100644 --- a/packages/core/test/tracing/spanBuffer_test.js +++ b/packages/core/test/tracing/spanBuffer_test.js @@ -574,9 +574,32 @@ describe('tracing/spanBuffer', () => { }); describe('when applying span transformations', () => { - beforeEach(() => spanBuffer.activate()); + before(() => { + downstreamConnectionStub = { + sendSpans: sinon.stub() + }; + + spanBuffer.init( + { + logger: testUtils.createFakeLogger(), + tracing: { + maxBufferedSpans: 1000, + forceTransmissionStartingAt: 500, + transmissionDelay: 1000, + spanBatchingEnabled: false + } + }, + downstreamConnectionStub + ); + }); + + beforeEach(() => { + spanBuffer.activate(); + downstreamConnectionStub.sendSpans.resetHistory(); + }); afterEach(() => spanBuffer.deactivate()); + const span = { t: '1234567803', s: '1234567892', @@ -605,6 +628,71 @@ describe('tracing/spanBuffer', () => { expect(spans).to.have.lengthOf(1); expect(span).to.deep.equal(span); }); + + it('should transform http spans before buffering and convert the transmitted batch to OTLP when INSTANA_OTLP_FORMAT is true', () => { + const previousValue = process.env.INSTANA_OTLP_FORMAT; + process.env.INSTANA_OTLP_FORMAT = 'true'; + downstreamConnectionStub.sendSpans.resetHistory(); + spanBuffer.setTransmitImmediate(true); + + const httpSpan = { + t: '1234567803', + s: '1234567892', + p: '1234567891', + n: 'node.http.server', + k: 1, + f: { + e: '45543', + h: 'localhost' + }, + ts: timestamp(Date.now()), + d: 25, + ec: 0, + data: { + http: { + operation: 'GET', + endpoints: '/orders', + connection: 'localhost', + status: 200 + } + } + }; + + spanBuffer.addSpan(httpSpan); + + expect(downstreamConnectionStub.sendSpans.calledOnce).to.be.true; + const sentPayload = downstreamConnectionStub.sendSpans.getCall(0).args[0]; + const sentSpan = sentPayload.resourceSpans[0].scopeSpans[0].spans[0]; + + expect(sentSpan.traceId).to.have.lengthOf(32); + expect(sentSpan.name).to.equal('GET /orders'); + expect(sentSpan.kind).to.equal(2); + expect(sentSpan.attributes).to.deep.include.members([ + { + key: 'http.request.method', + value: { stringValue: 'GET' } + }, + { + key: 'url.full', + value: { stringValue: '/orders' } + }, + { + key: 'server.address', + value: { stringValue: 'localhost' } + }, + { + key: 'http.response.status_code', + value: { intValue: 200 } + } + ]); + + spanBuffer.setTransmitImmediate(false); + if (previousValue === undefined) { + delete process.env.INSTANA_OTLP_FORMAT; + } else { + process.env.INSTANA_OTLP_FORMAT = previousValue; + } + }); }); });