Skip to content
Prev Previous commit
Next Next commit
fix __repr__
  • Loading branch information
Alex Boten committed Jun 21, 2021
commit f29c775c3e60f79d4d9659ee88ca5b30f40a2f66
9 changes: 7 additions & 2 deletions opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,13 @@ def __init__(
)

def __repr__(self):
return "max_attributes={}, max_events={}, max_links={}".format(
self.max_attributes, self.max_events, self.max_links
return "{}(max_attributes={}, max_events={}, max_links={}, max_event_attributes={}, max_link_attributes={})".format(
type(self).__name__,
self.max_attributes,
self.max_events,
self.max_links,
self.max_event_attributes,
self.max_link_attributes,
)

@classmethod
Expand Down