Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AshitaSingamsetty committed Jul 25, 2024
1 parent d05df82 commit 38089ae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _instrument(self, **kwargs):
)

sanitized_config = {
key: [urllib.parse.unquote(item) for item in value] if isinstance(value, list) else value
key: [urllib.parse.unquote(item) for item in value]
for key, value in self._config.items()
}

Expand Down Expand Up @@ -258,7 +258,7 @@ def _instrument(self, **kwargs):
# value_type=int,
# )

if any("system.disk.io" in value for value in sanitized_config.values()):
if any("system.disk.io" in url for urls in sanitized_config.values() for url in urls):
self._meter.create_observable_counter(
name="system.disk.io",
callbacks=[self._get_system_disk_io],
Expand Down Expand Up @@ -329,7 +329,7 @@ def _instrument(self, **kwargs):
)


if any("system.network.io" in value for value in sanitized_config.values()):
if any("system.network.io" in url for urls in sanitized_config.values() for url in urls):
self._meter.create_observable_counter(
name="system.network.io",
callbacks=[self._get_system_network_io],
Expand Down

0 comments on commit 38089ae

Please sign in to comment.