otel-cost-exporter · packages
Every package shipped from reaatech/otel-cost-exporter, published or pending.
5 packages
@reaatech/otel-cost-exporter
An OpenTelemetry span processor that reads GenAI semantic convention spans, calculates real-time USD costs using bundled pricing tables for major LLM providers, and exports the cost metrics via Prometheus, OTLP, or JSON.
- status
- published
- published
- 1 month ago
@reaatech/otel-cost-exporter-calculator
A cost calculator that converts raw token counts from GenAI semantic convention spans into per-model cost breakdowns in USD, with model name normalization, provider detection, and LRU pricing caching. It provides a `CostCalculator` class (or `createCostCalculator` factory) that accepts a pricing provider, cache, normalizer, and optional default price, and returns a `CostResult` with input, output, and total costs.
- status
- published
- published
- 1 month ago
@reaatech/otel-cost-exporter-cli
A CLI that starts an OTLP collector service, validates pricing tables, generates cost reports from span data, and inspects configuration, providing commands like `serve`, `report`, `config`, and `validate`.
- status
- published
- published
- 1 month ago
@reaatech/otel-cost-exporter-core
Shared domain types, Zod schemas, GenAI semantic convention constants, and a Pino-based logger factory for the `@reaatech/otel-cost-exporter-*` ecosystem. Exports TypeScript types (`CostSpan`, `PriceEntry`, `CostBreakdown`), their Zod validation schemas, and utility functions like `parseIntervalMs()` and `createLogger()`.
- status
- published
- published
- 1 month ago
@reaatech/otel-cost-exporter-pricing
A pricing table loader and lookup utility that bundles pre-validated YAML pricing data for OpenAI, Anthropic, Google, AWS Bedrock, and Azure, providing `loadPricingData()` and `createPricingTable()` functions for exact and wildcard model price lookups with custom override support.
- status
- published
- published
- 1 month ago