Skip to content

Commit

Permalink
Replace default dict with custom Attributes object
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek378521 committed Jul 4, 2024
1 parent 9f99875 commit 6a4595e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from deprecated import deprecated

from opentelemetry.attributes import BoundedAttributes
from opentelemetry.util.types import Attributes


class InstrumentationInfo:
Expand Down Expand Up @@ -91,7 +92,7 @@ def __init__(
name: str,
version: Optional[str] = None,
schema_url: Optional[str] = None,
attributes: Optional[dict] = None,
attributes: Optional[Attributes] = None,
) -> None:
self._name = name
self._version = version
Expand Down Expand Up @@ -149,7 +150,7 @@ def name(self) -> str:
return self._name

@property
def attributes(self) -> Optional[dict]:
def attributes(self) -> Optional[Attributes]:
return self._attributes

def to_json(self, indent=4) -> str:
Expand Down

0 comments on commit 6a4595e

Please sign in to comment.