Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ReadableSpan 'links' and 'events' properties cause TypeError #2214

Closed
@Arnatious

Description

@Arnatious

@property
def events(self) -> Sequence[Event]:
return MappingProxyType(self._events)
@property
def links(self) -> Sequence[trace_api.Link]:
return MappingProxyType(self._links)

Attempts to pass self._links: Sequence[trace_api.Link] or self._events: Sequence[Event] as argument to MappingProxyType().

Result:

TypeError: mappingproxy() argument must be a mapping, not list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions