UNPKG

autotel

Version:
382 lines 12.2 kB
{ "name": "autotel", "version": "3.0.5", "description": "Write Once, Observe Anywhere", "main": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", "sideEffects": [ "./dist/chunk-*.js", "./dist/chunk-*.cjs" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./instrumentation": { "types": "./dist/instrumentation.d.ts", "import": "./dist/instrumentation.js", "require": "./dist/instrumentation.cjs" }, "./logger": { "types": "./dist/logger.d.ts", "import": "./dist/logger.js", "require": "./dist/logger.cjs" }, "./sampling": { "types": "./dist/sampling.d.ts", "import": "./dist/sampling.js", "require": "./dist/sampling.cjs" }, "./event": { "types": "./dist/event.d.ts", "import": "./dist/event.js", "require": "./dist/event.cjs" }, "./event-subscriber": { "types": "./dist/event-subscriber.d.ts", "import": "./dist/event-subscriber.js", "require": "./dist/event-subscriber.cjs" }, "./attributes": { "types": "./dist/attributes.d.ts", "import": "./dist/attributes.js", "require": "./dist/attributes.cjs" }, "./event-testing": { "types": "./dist/event-testing.d.ts", "import": "./dist/event-testing.js", "require": "./dist/event-testing.cjs" }, "./metric": { "types": "./dist/metric.d.ts", "import": "./dist/metric.js", "require": "./dist/metric.cjs" }, "./metric-testing": { "types": "./dist/metric-testing.d.ts", "import": "./dist/metric-testing.js", "require": "./dist/metric-testing.cjs" }, "./metric-helpers": { "types": "./dist/metric-helpers.d.ts", "import": "./dist/metric-helpers.js", "require": "./dist/metric-helpers.cjs" }, "./testing": { "types": "./dist/testing.d.ts", "import": "./dist/testing.js", "require": "./dist/testing.cjs" }, "./exporters": { "types": "./dist/exporters.d.ts", "import": "./dist/exporters.js", "require": "./dist/exporters.cjs" }, "./processors": { "types": "./dist/processors.d.ts", "import": "./dist/processors.js", "require": "./dist/processors.cjs" }, "./config": { "types": "./dist/config.d.ts", "import": "./dist/config.js", "require": "./dist/config.cjs" }, "./tail-sampling-processor": { "types": "./dist/tail-sampling-processor.d.ts", "import": "./dist/tail-sampling-processor.js", "require": "./dist/tail-sampling-processor.cjs" }, "./filtering-span-processor": { "types": "./dist/filtering-span-processor.d.ts", "import": "./dist/filtering-span-processor.js", "require": "./dist/filtering-span-processor.cjs" }, "./span-name-normalizer": { "types": "./dist/span-name-normalizer.d.ts", "import": "./dist/span-name-normalizer.js", "require": "./dist/span-name-normalizer.cjs" }, "./attribute-redacting-processor": { "types": "./dist/attribute-redacting-processor.d.ts", "import": "./dist/attribute-redacting-processor.js", "require": "./dist/attribute-redacting-processor.cjs" }, "./functional": { "types": "./dist/functional.d.ts", "import": "./dist/functional.js", "require": "./dist/functional.cjs" }, "./http": { "types": "./dist/http.d.ts", "import": "./dist/http.js", "require": "./dist/http.cjs" }, "./db": { "types": "./dist/db.d.ts", "import": "./dist/db.js", "require": "./dist/db.cjs" }, "./trace-helpers": { "types": "./dist/trace-helpers.d.ts", "import": "./dist/trace-helpers.js", "require": "./dist/trace-helpers.cjs" }, "./tracer-provider": { "types": "./dist/tracer-provider.d.ts", "import": "./dist/tracer-provider.js", "require": "./dist/tracer-provider.cjs" }, "./semantic-helpers": { "types": "./dist/semantic-helpers.d.ts", "import": "./dist/semantic-helpers.js", "require": "./dist/semantic-helpers.cjs" }, "./decorators": { "types": "./dist/decorators.d.ts", "import": "./dist/decorators.js", "require": "./dist/decorators.cjs" }, "./register": { "types": "./dist/register.d.ts", "import": "./dist/register.js", "require": "./dist/register.cjs" }, "./auto": { "types": "./dist/auto.d.ts", "import": "./dist/auto.js", "require": "./dist/auto.cjs" }, "./hook.mjs": { "import": "./src/hook.mjs" }, "./yaml": { "types": "./dist/yaml-config.d.ts", "import": "./dist/yaml-config.js", "require": "./dist/yaml-config.cjs" }, "./messaging": { "types": "./dist/messaging.d.ts", "import": "./dist/messaging.js", "require": "./dist/messaging.cjs" }, "./messaging-testing": { "types": "./dist/messaging-testing.d.ts", "import": "./dist/messaging-testing.js", "require": "./dist/messaging-testing.cjs" }, "./messaging/adapters": { "types": "./dist/messaging-adapters.d.ts", "import": "./dist/messaging-adapters.js", "require": "./dist/messaging-adapters.cjs" }, "./business-baggage": { "types": "./dist/business-baggage.d.ts", "import": "./dist/business-baggage.js", "require": "./dist/business-baggage.cjs" }, "./workflow": { "types": "./dist/workflow.d.ts", "import": "./dist/workflow.js", "require": "./dist/workflow.cjs" }, "./webhook": { "types": "./dist/webhook.d.ts", "import": "./dist/webhook.js", "require": "./dist/webhook.cjs" }, "./workflow-distributed": { "types": "./dist/workflow-distributed.d.ts", "import": "./dist/workflow-distributed.js", "require": "./dist/workflow-distributed.cjs" }, "./semantic-conventions": { "types": "./dist/semantic-conventions.d.ts", "import": "./dist/semantic-conventions.js", "require": "./dist/semantic-conventions.cjs" }, "./correlation-id": { "types": "./dist/correlation-id.d.ts", "import": "./dist/correlation-id.js", "require": "./dist/correlation-id.cjs" }, "./test-span-collector": { "types": "./dist/test-span-collector.d.ts", "import": "./dist/test-span-collector.js", "require": "./dist/test-span-collector.cjs" }, "./parse-error": { "types": "./dist/parse-error.d.ts", "import": "./dist/parse-error.js", "require": "./dist/parse-error.cjs" }, "./drain-pipeline": { "types": "./dist/drain-pipeline.d.ts", "import": "./dist/drain-pipeline.js", "require": "./dist/drain-pipeline.cjs" }, "./enrichers": { "types": "./dist/enrichers.d.ts", "import": "./dist/enrichers.js", "require": "./dist/enrichers.cjs" } }, "files": [ "dist", "src", "README.md", "skills" ], "keywords": [ "opentelemetry", "otel", "typescript", "observability", "tracing", "logging", "instrumentation", "apm", "functional", "analytics", "metrics", "business-metrics", "product-analytics", "telemetry", "monitoring" ], "author": "Jag Reehal<jag@jagreehal.com> (https://jagreehal.com)", "license": "MIT", "dependencies": { "@opentelemetry/api": "^1.9.1", "@opentelemetry/api-logs": "^0.218.0", "@opentelemetry/exporter-logs-otlp-http": "^0.218.0", "@opentelemetry/exporter-metrics-otlp-http": "^0.218.0", "@opentelemetry/exporter-trace-otlp-http": "^0.218.0", "@opentelemetry/instrumentation": "^0.218.0", "@opentelemetry/resources": "^2.7.1", "@opentelemetry/sdk-logs": "^0.218.0", "@opentelemetry/sdk-metrics": "^2.7.1", "@opentelemetry/sdk-node": "^0.218.0", "@opentelemetry/sdk-trace-base": "^2.7.1", "@opentelemetry/semantic-conventions": "^1.41.1", "import-in-the-middle": "^3.0.1" }, "peerDependencies": { "@opentelemetry/auto-instrumentations-node": "^0.76.0", "@opentelemetry/exporter-logs-otlp-grpc": "^0.218.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.218.0", "@opentelemetry/exporter-trace-otlp-grpc": "^0.218.0", "@opentelemetry/resource-detector-aws": "^2.18.0", "@opentelemetry/resource-detector-container": "^0.8.9", "@opentelemetry/resource-detector-gcp": "^0.53.0", "@opentelemetry/sdk-trace-node": "^2.7.1", "@traceloop/node-server-sdk": "^0.26.0", "pino": "^10.3.1", "pino-pretty": "^13.1.3", "yaml": "^2.9.0" }, "peerDependenciesMeta": { "@opentelemetry/auto-instrumentations-node": { "optional": true }, "@opentelemetry/exporter-logs-otlp-grpc": { "optional": true }, "@opentelemetry/exporter-metrics-otlp-grpc": { "optional": true }, "@opentelemetry/exporter-trace-otlp-grpc": { "optional": true }, "@opentelemetry/sdk-trace-node": { "optional": true }, "@opentelemetry/resource-detector-aws": { "optional": true }, "@opentelemetry/resource-detector-gcp": { "optional": true }, "@opentelemetry/resource-detector-container": { "optional": true }, "@traceloop/node-server-sdk": { "optional": true }, "pino": { "optional": true }, "pino-pretty": { "optional": true }, "yaml": { "optional": true } }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.2", "@edge-runtime/vm": "^5.0.0", "@opentelemetry/auto-instrumentations-node": "^0.76.0", "@opentelemetry/context-async-hooks": "^2.7.1", "@opentelemetry/exporter-logs-otlp-grpc": "^0.218.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.218.0", "@opentelemetry/exporter-trace-otlp-grpc": "^0.218.0", "@opentelemetry/resource-detector-aws": "^2.18.0", "@opentelemetry/resource-detector-container": "^0.8.9", "@opentelemetry/resource-detector-gcp": "^0.53.0", "@opentelemetry/sdk-trace-node": "^2.7.1", "@swc/core": "^1.15.33", "@total-typescript/ts-reset": "^0.6.1", "@total-typescript/tsconfig": "^1.0.4", "@types/eslint-config-prettier": "^6.11.3", "@types/node": "^25.7.0", "@typescript-eslint/eslint-plugin": "^8.59.3", "@typescript-eslint/parser": "^8.59.3", "eslint-config-prettier": "^10.1.8", "eslint-plugin-unicorn": "^64.0.0", "pino": "^10.3.1", "prettier": "^3.8.3", "rimraf": "^6.1.3", "tsup": "^8.5.1", "tsx": "^4.21.0", "typescript": "^6.0.3", "typescript-eslint": "^8.59.3", "unplugin-swc": "^1.5.9", "vite-tsconfig-paths": "^6.1.1", "vitest": "^4.1.6", "vitest-mock-extended": "^4.0.0", "winston": "^3.19.0", "yaml": "^2.9.0" }, "repository": { "type": "git", "url": "https://github.com/jagreehal/autotel" }, "bugs": { "url": "https://github.com/jagreehal/autotel/issues" }, "homepage": "https://github.com/jagreehal/autotel#readme", "scripts": { "build": "tsup", "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test", "dev": "tsup --watch", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "format": "prettier --write .", "format:check": "prettier --check src/**/*.ts", "type-check": "tsc --noEmit", "test": "vitest run --config vitest.unit.config.ts", "test:watch": "vitest --config vitest.unit.config.ts", "test:integration": "vitest run --config vitest.integration.config.ts", "test:integration:watch": "vitest --config vitest.integration.config.ts", "test:e2e": "vitest run --config vitest.e2e.config.ts", "test:all": "pnpm test && pnpm test:integration", "check-format": "prettier --check ./src", "check-exports": "attw --pack . --ignore-rules false-esm no-resolution cjs-resolves-to-esm", "clean": "rimraf dist", "quality": "pnpm type-check && pnpm test && pnpm lint && pnpm format:check && pnpm build && pnpm check-exports" } }