From d501e928a8670526f8c5ede416f17264dae6ebe1 Mon Sep 17 00:00:00 2001 From: Pablo Collins Date: Fri, 15 Nov 2024 16:56:41 -0500 Subject: [PATCH] Fix lint --- src/splunk_otel/env.py | 2 -- src/splunk_otel/profile.py | 12 +++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/splunk_otel/env.py b/src/splunk_otel/env.py index c02f640..9fee7d2 100644 --- a/src/splunk_otel/env.py +++ b/src/splunk_otel/env.py @@ -72,5 +72,3 @@ def setdefault(self, key, value): def is_true_str(s: str) -> bool: return s.strip().lower() == "true" - - diff --git a/src/splunk_otel/profile.py b/src/splunk_otel/profile.py index 0dbad74..53d660d 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, set_logger_provider, SeverityNumber +from opentelemetry._logs import Logger, SeverityNumber, get_logger, set_logger_provider from opentelemetry.context import Context from opentelemetry.exporter.otlp.proto.grpc._log_exporter import OTLPLogExporter from opentelemetry.instrumentation.version import __version__ as version @@ -203,10 +203,12 @@ def mk_resource(service_name) -> Resource: else: _pylogger.warning(_NO_SERVICE_NAME_WARNING) resolved_name = _DEFAULT_SERVICE_NAME - return Resource.create({ - _SPLUNK_DISTRO_VERSION_ATTR: version, - _SERVICE_NAME_ATTR: resolved_name, - }) + return Resource.create( + { + _SPLUNK_DISTRO_VERSION_ATTR: version, + _SERVICE_NAME_ATTR: resolved_name, + } + ) class StringTable: