{"_id":"@cues/sawdust-otel","_rev":"2-39f5972855c9d58b013bfbbd0bff8bb2","name":"@cues/sawdust-otel","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@cues/sawdust-otel","version":"0.1.0","keywords":["opentelemetry","otel","logs","logging","loglayer","sawdust","observability"],"license":"MIT","_id":"@cues/sawdust-otel@0.1.0","maintainers":[{"name":"catesandrew","email":"catesandrew@gmail.com"}],"homepage":"https://catesandrew.github.io/sawdust/","bugs":{"url":"https://github.com/catesandrew/sawdust/issues"},"dist":{"shasum":"bdbcdcc17eb792b28a0ed823a8870b7315dbb928","tarball":"https://registry.npmjs.org/@cues/sawdust-otel/-/sawdust-otel-0.1.0.tgz","fileCount":9,"integrity":"sha512-VgEE82hnRTdmiBWXBR/naGo+ebZpwwE4bSA0bSCumLWCkbBu8rx0ZK2h1TCStpB3QPSycQJKrbxpXe87h9x9pA==","signatures":[{"sig":"MEUCIQCSB3qPVE6xqQOdaqFgVi751yPZH3XnmQu4i97WyV6aQQIgCULHBtyHC1JHKn2H96Nu6H6taxvxMBiMrsIfe9wsp/8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11927},"main":"./dist/cjs/index.js","type":"module","_from":"file:cues-sawdust-otel-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json"},"scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node ./scripts/postbuild-cjs.mjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"catesandrew","email":"catesandrew@gmail.com"},"_resolved":"/private/var/folders/kf/yz7n3vxj68j2hdld75dh6_180000gp/T/169a83f50534812612425ce9fa17201f/cues-sawdust-otel-0.1.0.tgz","_integrity":"sha512-VgEE82hnRTdmiBWXBR/naGo+ebZpwwE4bSA0bSCumLWCkbBu8rx0ZK2h1TCStpB3QPSycQJKrbxpXe87h9x9pA==","repository":{"url":"git+https://github.com/catesandrew/sawdust.git","type":"git","directory":"packages/otel"},"_npmVersion":"11.6.4","description":"OpenTelemetry logs provider for @cues/sawdust — a LogLayer transport that emits to the OpenTelemetry Logs API, wired through the sawdust extraTransports seam.","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@loglayer/transport":"^2.3.4","@opentelemetry/api-logs":"^0.204.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.9.3","@types/node":"^20.14.0","@cues/sawdust":"0.1.0","@biomejs/biome":"^2.5.5"},"peerDependencies":{"@cues/sawdust":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sawdust-otel_0.1.0_1785734276095_0.9820218777488967","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cues/sawdust-otel","version":"0.1.1","description":"OpenTelemetry logs provider for @cues/sawdust — a LogLayer transport that emits to the OpenTelemetry Logs API, wired through the sawdust extraTransports seam.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/catesandrew/sawdust.git","directory":"packages/otel"},"homepage":"https://catesandrew.github.io/sawdust/","bugs":{"url":"https://github.com/catesandrew/sawdust/issues"},"keywords":["opentelemetry","otel","logs","logging","loglayer","sawdust","observability"],"type":"module","main":"./dist/cjs/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"@loglayer/transport":"^2.3.4","@opentelemetry/api-logs":"^0.204.0"},"peerDependencies":{"@cues/sawdust":"0.1.1"},"devDependencies":{"@biomejs/biome":"^2.5.5","@types/node":"^20.14.0","typescript":"^5.9.3","vitest":"^3.0.0","@cues/sawdust":"0.1.1"},"scripts":{"build":"tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node ./scripts/postbuild-cjs.mjs","lint":"biome check .","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@cues/sawdust-otel@0.1.1","_integrity":"sha512-5bRcfhO8q8AZYAi3unIKwtKIrXJ+xLd+RJWe26ZEq0upssOlHY86cXA+LT26NptjLMKdBJOgqs6fh3O/HOtjiQ==","_resolved":"/tmp/f83cadfe9c864b6802f34c82364f6d5f/cues-sawdust-otel-0.1.1.tgz","_from":"file:cues-sawdust-otel-0.1.1.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-5bRcfhO8q8AZYAi3unIKwtKIrXJ+xLd+RJWe26ZEq0upssOlHY86cXA+LT26NptjLMKdBJOgqs6fh3O/HOtjiQ==","shasum":"4a66e2e9e12fa21454c7f036305e0898ca2fe313","tarball":"https://registry.npmjs.org/@cues/sawdust-otel/-/sawdust-otel-0.1.1.tgz","fileCount":9,"unpackedSize":11927,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cues%2fsawdust-otel@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPrq2aaUG+dKmOlchOFEorGc0qyexUnNeCD0G5f8MCnAIgSHbA1xQ1KWOJsx11s2EuZjwl+kh/no0j8LpTePxdBGQ="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:799f950c-3109-4f25-afda-e68b71b9fdb6"}},"directories":{},"maintainers":[{"name":"catesandrew","email":"catesandrew@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sawdust-otel_0.1.1_1785772782977_0.8708902076686129"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T05:17:55.928Z","modified":"2026-08-03T15:59:43.460Z","0.1.0":"2026-08-03T05:17:56.238Z","0.1.1":"2026-08-03T15:59:43.129Z"},"bugs":{"url":"https://github.com/catesandrew/sawdust/issues"},"license":"MIT","homepage":"https://catesandrew.github.io/sawdust/","keywords":["opentelemetry","otel","logs","logging","loglayer","sawdust","observability"],"repository":{"type":"git","url":"git+https://github.com/catesandrew/sawdust.git","directory":"packages/otel"},"description":"OpenTelemetry logs provider for @cues/sawdust — a LogLayer transport that emits to the OpenTelemetry Logs API, wired through the sawdust extraTransports seam.","maintainers":[{"name":"catesandrew","email":"catesandrew@gmail.com"}],"readme":"# @cues/sawdust-otel\n\nOpenTelemetry logs provider for [`@cues/sawdust`](https://www.npmjs.com/package/@cues/sawdust) —\na LogLayer transport that emits every log to the OpenTelemetry **Logs API**, wired through\nsawdust's `extraTransports` seam.\n\n📖 **Docs:** <https://catesandrew.github.io/sawdust/docs/concepts/providers>\n\n## Install\n\n```bash\npnpm add @cues/sawdust @cues/sawdust-otel\n```\n\n## Usage\n\nYou own the OpenTelemetry SDK. Register a `LoggerProvider` once at bootstrap; the transport emits\ninto whatever provider is globally installed.\n\n```typescript\nimport { configureLogger } from '@cues/sawdust/logger'\nimport { otelTransport } from '@cues/sawdust-otel'\n\nconfigureLogger({\n  transports: { console: { enabled: true } },\n  extraTransports: [otelTransport({ scopeName: 'orders-api' })],\n})\n```\n\nEach sawdust log becomes an OTel `LogRecord` (severity mapped from the log level, message as the\nbody, structured context as attributes).\n\n## Why it exists\n\nIt is the second provider — after `@cues/sawdust-datadog` — and exists to prove the provider seam:\na package with zero knowledge of core internals plugs a transport in through the public\n`extraTransports` API alone. See the [Providers guide](https://catesandrew.github.io/sawdust/docs/concepts/providers).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}