Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add telemetry event for databricks bundle init #2087

Open
wants to merge 6 commits into
base: add-telemetry-logger
Choose a base branch
from

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Jan 6, 2025

Changes

This PR adds telemetry logging for databricks bundle init usage.

Tests

Unit, integration tests and manually.

Manual logs:

.venv➜  template-playground cli bundle init ~/cli/libs/template/templates/default-python -p dogfood -
-debug
✨ Your new project has been created in the 'my_project' directory!

Please refer to the README.md file for "getting started" instructions.
See also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
02:00:38 DEBUG POST /telemetry-ext
> {
>   "items": null,
>   "protoLogs": [
>     "{\"frontend_log_event_id\":\"9377e787-3ca6-4a48-afcb-ee8e186b7939\",\"entry\":{\"databricks_cli_log\":{\"... (97 more bytes)"
>   ],
>   "uploadTime": 1736195437
> }
< HTTP/2.0 200 OK
< {
<   "errors": null,
<   "numProtoSuccess": 1,
<   "numSuccess": 0
< } pid=58408 sdk=true
02:00:38 DEBUG Successfully flushed telemetry events pid=58408
02:00:38  INFO completed execution pid=58408 exit_code=0

@shreyas-goenka shreyas-goenka changed the base branch from main to add-telemetry-logger January 6, 2025 20:22
@shreyas-goenka shreyas-goenka marked this pull request as ready for review January 6, 2025 20:40
@shreyas-goenka shreyas-goenka changed the title Log bundle init events Add telemetry event for databricks bundle init Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant