diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f20071..cd14401 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.4.0 + rev: v5.0.0 hooks: - id: check-ast - id: trailing-whitespace @@ -10,7 +10,7 @@ repos: - id: end-of-file-fixer - repo: https://github.com/asottile/add-trailing-comma - rev: v2.1.0 + rev: v3.1.0 hooks: - id: add-trailing-comma diff --git a/otlp_psqlpy/__init__.py b/otlp_psqlpy/__init__.py index ad94913..5f42670 100644 --- a/otlp_psqlpy/__init__.py +++ b/otlp_psqlpy/__init__.py @@ -77,7 +77,7 @@ def _construct_span( if hosts: span_attributes[SpanAttributes.SERVER_ADDRESS] = ", ".join(hosts) span_attributes[SpanAttributes.SERVER_PORT] = ", ".join( - [str(port) for port in ports] + [str(port) for port in ports], ) span_attributes[SpanAttributes.NETWORK_TRANSPORT] = ( NetTransportValues.IP_TCP.value @@ -86,7 +86,7 @@ def _construct_span( elif host_addrs: span_attributes[SpanAttributes.SERVER_ADDRESS] = ", ".join(host_addrs) span_attributes[SpanAttributes.SERVER_PORT] = ", ".join( - [str(port) for port in ports] + [str(port) for port in ports], ) span_attributes[SpanAttributes.NETWORK_TRANSPORT] = ( NetTransportValues.IP_TCP.value