test: backend coverage parity audit post-refactor

Đang mở
#1,054 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
observability, testing-qa

Hướng nghiên cứu

Start with test/MARKERS_GUIDE.md to learn how backend-specific integration markers gate tests, then look at how each backend (openai, ollama, huggingface, watsonx, litellm) emits generation spans. Check the Anthropic cache and reasoning token attributes from PR #1036 against the current OTel GenAI semconv. Done means a shared minimum attribute set is asserted per backend, gaps are documented, and the Anthropic names are renamed or commented. Work depends on #1045 and #1046, so confirm those have merged first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/backends area/telemetry p2 testing

Background

Refresh of retired sub-issue #477. After the plugin refactor, verify all backends emit spans uniformly and parity holds across openai, ollama, huggingface, watsonx, litellm (and vllm if applicable).

Scope

  • Add integration tests (gated on backend-specific markers, per test/MARKERS_GUIDE.md) asserting each backend produces backend-generation spans with a matching set of gen_ai.* attributes.
  • Document any backend-specific attribute gaps.
  • Cross-check the Anthropic-specific cache/reasoning token attributes emitted by PR #1036 (gen_ai.usage.cache_read.input_tokens, gen_ai.usage.cache_creation.input_tokens, gen_ai.usage.reasoning.output_tokens) against the current OTel GenAI semconv at audit time; rename to match the spec if equivalents have been standardised, otherwise flag with a code comment as Anthropic-specific extensions pending standardisation. (Per @planetf1's comment on #444.)

Phase & dependencies

Phase 3 (polish). Depends on #1045 and #1046. Can start any time after Phase 1 lands; best done after most of Phase 2 has merged so the audit is against steady-state tracing.

Acceptance criteria

  • All backends produce backend-generation spans with a shared minimum attribute set.
  • Known gaps documented.
  • Anthropic-specific cache/reasoning token attribute names cross-checked against OTel GenAI semconv; renamed or flagged as documented above.

Parent epic: #444

Ngôn ngữ chính
Python
Star
1.8k
Fork
161
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của generative-computing/mellea

Tất cả issue của generative-computing/mellea

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.