Skip to content

Getting so many opentelemetry.attributes warning in logsΒ #4367

@sagorbrur

Description

@sagorbrur

Bug Description

Getting so many logs regarding the below message. What could be the reason?

2025-12-23T02:17:17.816157521Z stdout F {"level": "WARNING", "name": "opentelemetry.attributes", "message": "Attribute websocket: Invalid type ClientConnection for attribute value. Expected one of ['NoneType', 'bool', 'bytes', 'int', 'float', 'str', 'Sequence', 'Mapping'] or a sequence of those types", "pid": 52164, "job_id": "AJ_tSKPTPwn8zhZ", "room_id": "RM_fx9V6uzsP53Y", "timestamp": "2025-12-23T02:17:17.815833+00:00"}

Expected Behavior

less logs

Reproduction Steps

1. 
2.
3.
...
- Sample code snippet, or a GitHub Gist link -

Operating System

ubuntu

Models Used

Deepgram, Openai, elevenlab

Package Versions

livekit-agents==1.3.5

Session/Room/Call IDs

No response

Proposed Solution

Additional Context

No response

Screenshots and Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions