diff --git a/src/splunk_otel/profile.py b/src/splunk_otel/profile.py index b68b095..e0fc44b 100644 --- a/src/splunk_otel/profile.py +++ b/src/splunk_otel/profile.py @@ -10,7 +10,7 @@ import opentelemetry.context import wrapt -from opentelemetry._logs import get_logger, Logger, SeverityNumber +from opentelemetry._logs import Logger, SeverityNumber, get_logger from opentelemetry.context import Context from opentelemetry.instrumentation.version import __version__ as version from opentelemetry.sdk._logs import LogRecord @@ -195,7 +195,6 @@ def _pb_profile_to_str(pb_profile) -> str: class _PeriodicTimer: - def __init__(self, period_millis, target): self.period_seconds = period_millis / 1e3 self.target = target diff --git a/tests/test_profile.py b/tests/test_profile.py index 0ab9b7d..f038efa 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -9,7 +9,6 @@ from google.protobuf.json_format import MessageToDict from opentelemetry._logs import Logger from opentelemetry.sdk.resources import Resource - from splunk_otel import profile_pb2 from splunk_otel.profile import _pb_profile_to_str, _ProfileScraper, _stacktraces_to_cpu_profile @@ -101,7 +100,6 @@ def _do_work(time_ms): class _FakeLogger(Logger): - def __init__(self): super().__init__("fake-logger") self.log_records = []