We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c05a1 commit 506ce61Copy full SHA for 506ce61
1 file changed
src/couchbase_haystack/telemetry.py
@@ -9,7 +9,6 @@
9
import platform
10
import threading
11
from contextlib import suppress
12
-from importlib import import_module
13
from importlib.metadata import version
14
15
SCARF_ENDPOINT_URL = "https://couchbase.gateway.scarf.sh/couchbase-haystack"
@@ -33,7 +32,8 @@ def _send_telemetry() -> None:
33
32
_telemetry_sent.set()
34
35
with suppress(Exception):
36
- event_logger = import_module("scarf").ScarfEventLogger(
+ from scarf import ScarfEventLogger # noqa: PLC0415
+ event_logger = ScarfEventLogger(
37
endpoint_url=SCARF_ENDPOINT_URL,
38
timeout=2.0,
39
)
0 commit comments