Skip to content

Commit 98c5f30

Browse files
authored
Added Databricks CLI version as part of routed command telemetry (#147)
Fix #141
1 parent 2bfbf18 commit 98c5f30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
import os
2+
13
from databricks.sdk.core import with_user_agent_extra
24

35
from .__about__ import __version__
46

57
with_user_agent_extra("blueprint", __version__)
8+
9+
cli_version = os.environ.get("DATABRICKS_CLI_VERSION")
10+
if cli_version:
11+
with_user_agent_extra("cli", cli_version)

0 commit comments

Comments
 (0)