发布

  • [OPIK-6524][BE] Cost Tracking: Add Missing Models and Providers - Elastic Inference Service OTEL (#6759)

    frostbyte_neo 发布于 2026-05-19 13:30:46 +00:00

    • [OPIK-6524][BE] Add support for Elastic Inference Service model/provider resolution in OpenTelemetry pipeline and cost calculations
    • Introduced ElasticInferenceServiceResolver to rewrite EIS provider/model attributes to underlying Opik canonical values for accurate cost lookup and downstream filtering.
    • Added model_prices_overrides.json to define pricing and alias mappings for EIS-supported models.
    • Updated OpenTelemetryMapper to integrate EIS resolution logic, ensuring original provider/model values are recorded in span metadata for traceability.
    • Included comprehensive tests for EIS integration, alias resolution, and dot-to-hyphen normalization in cost calculations.
    • Introduced end-to-end tests ensuring correct attribute rewriting, provider/model mapping, and non-zero cost verification for supported EIS models.
    • [OPIK-6524][BE] Fixed formatting issue in ElasticInferenceServiceResolver

    • [OPIK-6524][BE] Update log level and formatting for model price overrides error handling in CostService

    • [OPIK-6524][BE] Refactor alias handling in CostService to ensure order-independent overrides

    • Introduced two-pass processing logic to separate direct overrides and alias resolution.
    • Utilized List<Map.Entry<String, ModelCostData>> for intermediate storage of alias mappings to ensure deterministic behavior during iteration.
    • [OPIK-6524][BE] Consolidate EIS provider/model mapping tests into parameterized test
    • Replaced individual test cases with a single @ParameterizedTest using CsvSource for provider/model mapping validation.
    • Simplified test logic to ensure consistency across multiple provider prefixes.
    • [OPIK-6524][BE] Updated code comments to clarify the logic behind direct overrides and alias resolution ordering.
    下载附件