Skip to content

Add more informative/restrictive typing to Log body field #4124

@lzchen

Description

@lzchen

Describe your environment

OS: (e.g, Ubuntu)
Python version: (e.g., Python 3.8.10)
SDK version: (e.g., 1.25.0)
API version: (e.g., 1.25.0)

What happened?

From this comment: #4054 (comment)

Change the typing of LogRecord to restrict to the data model definition of Any instead of Python's Any type.

Steps to Reproduce

See notes.

Expected Result

See notes.

Actual Result

See notes.

Additional context

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions