Skip to content

[OTel] Three different AnyValue decoders, two of them lossy #173

Closed

Description

@krisztianfekete

We decode OTel AnyValue in three places and only one does it right. extraction.py silently drops array/kvlist/bytes values, loader/otlp.py JSON-dumps the raw proto structure, and only otlp_processing.py decodes it properly (and only for log bodies).

Concrete symptom: gen_ai.response.finish_reasons shows up as the literal blob {"values":[{"stringValue":"stop"}]} via one path and vanishes via another. One shared decoder fixes all three call sites.

Activity

  1. added
    bugSomething isn't working
    OTelMostly OTel compliance, following best practices, etc.
    on Jul 10, 2026
  2. Leroyyyyyyyyy commented on Aug 16, 2026

    @Leroyyyyyyyyy
    Contributor

    Hi @krisztianfekete — I'd like to take this one, if it's still available.
    Planning to have a PR up (with tests) in the next few days.

  3. krisztianfekete commented on Aug 17, 2026

    @krisztianfekete
    MemberAuthor

    Hey, sounds good, looking forward to it!

  4. added 3 commits that reference this issue on Aug 27, 2026
    c65f82d
    450fe72
    471301c
  5. added a commit that references this issue on Sep 2, 2026
    46ec211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OTelMostly OTel compliance, following best practices, etc.bugSomething isn't workinggood first issueGood for newcomers

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions