Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcollins committed Nov 15, 2024
1 parent d42782f commit d501e92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/splunk_otel/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,3 @@ def setdefault(self, key, value):

def is_true_str(s: str) -> bool:
return s.strip().lower() == "true"


12 changes: 7 additions & 5 deletions src/splunk_otel/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d501e92

Please sign in to comment.