@pepys/source-telemetry
v0.4.0
Published
The pepys telemetry plug-in: the OTLP log records of coding agents, with their model requests and turn costs
Readme
The pepys telemetry plug-in, for Bun.
The plug-in receives the OTLP log exports of coding agents as facts, and builds one row per model request and one per reported turn cost with its two consumers.
Install
bun add @pepys/source-telemetry @pepys/kit
bun add -d @pepys/cliAdd the plug-in to a deployment, then build its consumers. The build compiles each consumer, which needs zig and wasm-tools, as the CLI README says.
// deployment.ts
import { defineDeployment } from '@pepys/kit';
import { telemetryPlugin } from '@pepys/source-telemetry';
export const deployment = defineDeployment({ name: 'home', plugins: [telemetryPlugin] });bunx pepys build deployment.ts --out buildFeatures
telemetryPlugin: the plug-in, to add to a deployment.telemetryModelRequestConsumerandtelemetryTurnCostConsumer: the consumers of the log record facts, with their SQL schemas.sessionModelRequestsQuery: the querytelemetry_session_model_requests, which returns the model requests of one session that the named sender stored.
Documentation
The pepys docs hold the design of the plug-ins.
