Add telemetry events for SSH tunnel connections#4707
Open
anton-107 wants to merge 2 commits intoantonnek/ide-settings-prompt-improvementsfrom
Open
Add telemetry events for SSH tunnel connections#4707anton-107 wants to merge 2 commits intoantonnek/ide-settings-prompt-improvementsfrom
anton-107 wants to merge 2 commits intoantonnek/ide-settings-prompt-improvementsfrom
Conversation
Track SSH tunnel usage by logging an SshTunnelEvent at the end of each connection attempt. Captures compute type (dedicated/serverless), accelerator, IDE, client mode, cluster ID, server start time, and errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
|
Commit: bd0048b
16 interesting tests: 7 SKIP, 6 RECOVERED, 3 flaky
Top 20 slowest tests (at least 2 minutes):
|
Contributor
shreyas-goenka
left a comment
There was a problem hiding this comment.
Can you create the proto PR as well? I believe the lumberjack team will have some feedback. We also have linters in universe that might require changing the field names.
Note, some information like ErrorMessages can only be logged in regional logfood. I'm checking with legal whether we have approval for this, but as of this moment we do not have permission to log arbitary strings / error messages in regional logfoods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SshTunnelEventtelemetry proto tracking compute type (dedicated/serverless), accelerator, IDE, client mode, cluster ID, server start time, and errorsssh connectto log a telemetry event at the end of each connection attempt (success or failure)BuildTelemetryEventJIRA: DECO-26526
Test plan
go test ./experimental/ssh/... ./libs/telemetry/...)TestBuildTelemetryEventcovers dedicated/serverless, SSH/proxy/IDE modes, and reconnect detectiondatabricks ssh connect --cluster <id>and verify telemetry event is logged (visible withDATABRICKS_CLI_TELEMETRY_TIMEOUT=10+ debug logging)🤖 Generated with Claude Code