{"_id":"@otlpkit/query","_rev":"3-e5d1fb1c0a80731ab686cf9b42461ae3","name":"@otlpkit/query","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"@otlpkit/query","version":"0.1.0","keywords":["opentelemetry","otlp","telemetry","query"],"license":"UNLICENSED","_id":"@otlpkit/query@0.1.0","maintainers":[{"name":"strawgate-user","email":"williamseaston@gmail.com"}],"dist":{"shasum":"5381249a8767b98807a77cb2d092239e27fbb6d4","tarball":"https://registry.npmjs.org/@otlpkit/query/-/query-0.1.0.tgz","fileCount":6,"integrity":"sha512-ehtAr7ZSN6lLI89g7QOHybIwPmhiFzc0rgcXasEW0PQXRPa0JcskM5m5U0NL3vwh2q6ezRFjAQdkL4C0EHHVgw==","signatures":[{"sig":"MEUCIBoRY71jz5AUsDCU+Mi7HkgkvnYDWRsQKfjgk81tK/74AiEAvm/Mk7wY9SFr4BqKf7M0b9/R/XFrkAmykLU2kLdj/cU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28869},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"ab11586ddd30f6fe71f7e4e9ab6edb343baaa412","scripts":{"build":"tsc -b","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"strawgate-user","email":"williamseaston@gmail.com"},"_npmVersion":"11.3.0","description":"Generic telemetry query helpers for otlpkit.","directories":{},"sideEffects":false,"_nodeVersion":"24.1.0","dependencies":{"@otlpkit/otlpjson":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/query_0.1.0_1775869105801_0.21164227734625096","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@otlpkit/query","version":"0.2.2","keywords":["opentelemetry","otlp","telemetry","query"],"license":"UNLICENSED","_id":"@otlpkit/query@0.2.2","maintainers":[{"name":"strawgate-user","email":"williamseaston@gmail.com"}],"homepage":"https://github.com/strawgate/o11ykit#readme","bugs":{"url":"https://github.com/strawgate/o11ykit/issues"},"dist":{"shasum":"f437dd8d8d39b687547228f9d822ba17e7971d32","tarball":"https://registry.npmjs.org/@otlpkit/query/-/query-0.2.2.tgz","fileCount":6,"integrity":"sha512-TgBCVzYRzg2ZXF8jmUsDIh4yZhLWmxWFvm/m5+qMygST0RwMsiNWbZ2si5nV5lkn9D1fmhu61V5Tfw1YP4JtGw==","signatures":[{"sig":"MEUCIQC8iBka3aNQZQ7tCJZOflLg9cH86cjQzK3/N7PxDvQ3wQIgN8z5bLzNsVylRwwSJMGrLh6Aw3IS9tnfeQv/tbTrlPw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@otlpkit%2fquery@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29000},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"8b6552c8d749cc33be38de6c1ed9c6219e0f068d","scripts":{"build":"tsc -b","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f985362f-29be-407a-8bf7-51f92d50c884"}},"repository":{"url":"git+https://github.com/strawgate/o11ykit.git","type":"git","directory":"packages/query"},"_npmVersion":"11.12.1","description":"Generic telemetry query helpers for otlpkit.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"@otlpkit/otlpjson":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/query_0.2.2_1775922361869_0.7509830208494865","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@otlpkit/query","version":"0.2.3","description":"Generic telemetry query helpers for otlpkit.","license":"UNLICENSED","engines":{"node":">=22.0.0"},"keywords":["opentelemetry","otlp","telemetry","query"],"type":"module","sideEffects":false,"types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"main":"./dist/index.js","publishConfig":{"access":"public"},"dependencies":{"@otlpkit/otlpjson":"^0.2.3"},"scripts":{"build":"tsc -b","typecheck":"tsc -p tsconfig.json --noEmit"},"repository":{"type":"git","url":"git+https://github.com/strawgate/o11ykit.git","directory":"packages/query"},"gitHead":"1dabdc45cb73ac44a576d826f3acadd5d159a691","_id":"@otlpkit/query@0.2.3","bugs":{"url":"https://github.com/strawgate/o11ykit/issues"},"homepage":"https://github.com/strawgate/o11ykit#readme","_nodeVersion":"24.14.1","_npmVersion":"11.12.1","dist":{"integrity":"sha512-/jMTEVk4L6UJkIqEg7sAz4rP/83PTGgUVn7iKx+x2iHttcI997IS0nWFK+7nftWB9ozDDmf9yOEQtHBsVwxYtw==","shasum":"6c4005b40ed6e4296194225c6f5e76a77d439b6e","tarball":"https://registry.npmjs.org/@otlpkit/query/-/query-0.2.3.tgz","fileCount":6,"unpackedSize":29000,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@otlpkit%2fquery@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD8nsK//OSTqAPuJRdIrAPDV+EJTZ34IVAh+D1p2ttaLAIgCq6zdZZFmbSxb6Yl/s54QcIK4qd2dFEnzSvvgZH5Pxw="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f985362f-29be-407a-8bf7-51f92d50c884"}},"directories":{},"maintainers":[{"name":"strawgate-user","email":"williamseaston@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/query_0.2.3_1775976564146_0.4352391034695675"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-11T00:58:25.727Z","modified":"2026-04-12T06:49:24.619Z","0.1.0":"2026-04-11T00:58:25.935Z","0.2.2":"2026-04-11T15:46:02.010Z","0.2.3":"2026-04-12T06:49:24.292Z"},"bugs":{"url":"https://github.com/strawgate/o11ykit/issues"},"license":"UNLICENSED","homepage":"https://github.com/strawgate/o11ykit#readme","keywords":["opentelemetry","otlp","telemetry","query"],"repository":{"type":"git","url":"git+https://github.com/strawgate/o11ykit.git","directory":"packages/query"},"description":"Generic telemetry query helpers for otlpkit.","maintainers":[{"name":"strawgate-user","email":"williamseaston@gmail.com"}],"readme":"# @otlpkit/query\n\nSignal-agnostic telemetry query and reduction helpers built on top of `@otlpkit/otlpjson`.\n\n## What It Provides\n\n- Materialization helpers for metrics, traces, and logs\n- Flexible filtering by signal, time, scope, resource, and attributes\n- Grouping and latest-value selection\n- Time bucketing and aggregations (`sum`, `avg`, `min`, `max`, `last`, `count`)\n\n## Quick Example\n\n```ts\nimport { bucketTimeSeries, collectMetrics, filterRecords } from \"@otlpkit/query\";\n\nconst records = collectMetrics(document);\nconst filtered = filterRecords(records, { name: \"logfwd.inflight_batches\" });\nconst series = bucketTimeSeries(filtered, { intervalMs: 1000, reduce: \"avg\" });\n```\n","readmeFilename":"README.md"}