Skip to content

fix: track JetBrains connections #10968

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

Merged
merged 12 commits into from
Dec 7, 2023
Prev Previous commit
Next Next commit
Elaborate on process name check comment
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
  • Loading branch information
code-asher and Emyrk committed Dec 1, 2023
commit 34b7c5eb6003cf3667f64b6a229a254052f1636c
7 changes: 7 additions & 0 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ func TestAgent_Stats_Magic(t *testing.T) {

// This test name must contain the string checked for by the agent, since it
// looks for this string in the process name.
//
// This test sets up a port forward that emulates what Jetbrains IDE's do when
// using gateway. The remote server side of the port forward is spun up using
// the gotest process, which includes the test name.
// So this unit test emulates a PID in the workspace with a similar
// name to the jetbrains IDE. That makes the agent this this SSH port
// forward is a "jetbrains" session.
t.Run("TracksIdea.vendor.name=JetBrains", func(t *testing.T) {
t.Parallel()
if runtime.GOOS != "linux" {
Expand Down