Skip to content

Commit

Permalink
Refs #NAV-3691 - Remove metaclass for otlp object.
Browse files Browse the repository at this point in the history
  • Loading branch information
Netmisa committed Feb 7, 2025
1 parent f0712e6 commit 4304c10
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions source/jormungandr/jormungandr/otlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@
from opentelemetry import trace, metrics


class OtlpMeta(type):
_instance: Dict = {}

def __call__(cls, *args, **kwds):
if cls not in cls._instance:
cls._instance[cls] = super().__call__(*args, **kwds)

return cls._instance[cls]


class Otlp(metaclass=OtlpMeta):
class Otlp:
__service_name: str = "jormungandr"
__platform: str = "unknown"
__account: str = "unknown"
Expand Down

0 comments on commit 4304c10

Please sign in to comment.