Skip to content

Commit

Permalink
fix: remove dependency on sdk for system-metrics instrumentation (#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto committed May 29, 2024
1 parent bd9156f commit 7bddbb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ classifiers = [
dependencies = [
"opentelemetry-instrumentation == 0.46b0.dev",
"opentelemetry-api ~= 1.11",
"opentelemetry-sdk ~= 1.11",
"psutil ~= 5.9",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
from opentelemetry.instrumentation.system_metrics.package import _instruments
from opentelemetry.instrumentation.system_metrics.version import __version__
from opentelemetry.metrics import CallbackOptions, Observation, get_meter
from opentelemetry.sdk.util import get_dict_as_key

_logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -638,8 +637,8 @@ def _get_system_network_connections(
net_connection, metric
)

connection_counters_key = get_dict_as_key(
self._system_network_connections_labels
connection_counters_key = tuple(
sorted(self._system_network_connections_labels.items())
)

if connection_counters_key in connection_counters:
Expand Down

0 comments on commit 7bddbb5

Please sign in to comment.