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 a14be01 commit d64eae2Copy full SHA for d64eae2
pkg/cortex/client/cortex/telemetry.py
@@ -83,6 +83,7 @@ def _create_default_scope(optional_tags: dict = {}) -> sentry_sdk.Scope:
83
user_id = None
84
client_id_file_path = pathlib.Path.home() / ".cortex" / "client-id.txt"
85
if not client_id_file_path.is_file():
86
+ client_id_file_path.parent.mkdir(parents=True, exist_ok=True)
87
client_id_file_path.write_text(str(uuid4()))
88
user_id = client_id_file_path.read_text()
89
0 commit comments