# Note: these are approved chart configs, used to generate the upload config.
# For the chart config file format, see chartconfig.go.

title: Editor Distribution
counter: gopls/client:{vscode,vscodium,vscode-insiders,code-server,eglot,govim,neovim,coc.nvim,sublimetext,windsurf,cursor,other}
description: measure editor distribution for gopls users.
type: partition
issue: https://go.dev/issue/61038
issue: https://go.dev/issue/62214 # add vscode-insiders
issue: https://go.dev/issue/74874 # add windsurf and cursor
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.13.0 # temporarily back-version to demonstrate config generation.
---
title: Go versions in use for gopls views
counter: gopls/goversion:{1.16,1.17,1.18,1.19,1.20,1.21,1.22,1.23,1.24,1.25,1.26,1.27,1.28,1.29,1.30}
description: measure go version usage distribution.
type: partition
issue: https://go.dev/issue/62248
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.13.0
---
title: Number of bug report calls
counter: gopls/bug
description: count the bugs reported through gopls/internal/bug APIs.
type: stack
issue: https://go.dev/issue/62249
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
depth: 16
version: v0.13.0
---
counter: crash/crash
title: Unexpected Go crashes
description: stacks of goroutines running when the Go program crashed
type: stack
issue: https://go.dev/issue/65696
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
depth: 16
version: v0.15.0
---
counter: crash/malformed
title: Failure to parse runtime crash output
description: count of runtime crash messages that failed to parse
type: partition
issue: https://go.dev/issue/65696
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.15.0
---
counter: crash/no-running-goroutine
title: Failure to identify any running goroutine in the crash output
description: count of runtime crash messages that don't have a running goroutine (e.g. deadlock)
type: partition
issue: https://go.dev/issue/65696
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.15.0
---
counter: go/invocations
title: cmd/go invocations
description: Number of invocations of the go command
type: partition
issue: https://go.dev/issue/67244
program: cmd/go
version: go1.23rc1
---
counter: go/build/flag:{
  buildmode
}
title: cmd/go flags
description: Flag names of flags provided to the go command
type: partition
issue: https://go.dev/issue/67244
program: cmd/go
version: go1.23rc1
---
counter: go/build/flag/buildmode:{
  archive,
  c-archive,
  c-shared,
  default,
  exe,
  pie,
  shared,
  plugin
}
title: cmd/go buildmode values
description: Buildmode values for the go command
type: partition
issue: https://go.dev/issue/67244
program: cmd/go
version: go1.23rc1
---
counter: compile/invocations
title: cmd/compile invocations
description: Number of invocations of the go compiler
type: partition
issue: https://go.dev/issue/67244
program: cmd/compile
version: go1.23rc1
---
title: Compiler bug report calls
counter: compile/bug
description: count stacks for cases where cmd/compile has a fatal error
type: stack
issue: https://go.dev/issue/67244
program: cmd/compile
depth: 16
version: go1.23rc1
---
counter: govulncheck/scan:{symbol,package,module}
title: Scan Level Distribution
description: measure govulncheck scan level distribution
type: partition
issue: https://go.dev/issue/67678
program: golang.org/x/vuln/cmd/govulncheck
module: golang.org/x/vuln
---
counter: govulncheck/mode:{source,binary,extract,query,convert}
title: Scan Mode Distribution
description: measure govulncheck scan mode distribution
type: partition
issue: https://go.dev/issue/67678
program: golang.org/x/vuln/cmd/govulncheck
module: golang.org/x/vuln
---
counter: govulncheck/format:{text,json,sarif,openvex}
title: Output Format Distribution
description: measure govulncheck output format distribution
type: partition
issue: https://go.dev/issue/67678
program: golang.org/x/vuln/cmd/govulncheck
module: golang.org/x/vuln
---
counter: govulncheck/show:{none,traces,color,verbose,version}
title: Show Options Distribution
description: measure govulncheck show flag distribution
type: partition
issue: https://go.dev/issue/67678
program: golang.org/x/vuln/cmd/govulncheck
module: golang.org/x/vuln
---
counter: govulncheck/assumptions:{multi-patterns,no-binary-platform,no-relative-path,no-go-root,local-replace,unknown-pkg-mod-path}
title: Code Invariants Distribution
description: measure distribution of failed govulncheck internal assumptions
type: partition
issue: https://go.dev/issue/67678
program: golang.org/x/vuln/cmd/govulncheck
module: golang.org/x/vuln
---
counter: gopls/gotoolchain:{auto,path,local,other}
title: GOTOOLCHAIN types used with gopls
description: measure the types of GOTOOLCHAIN values used with gopls
type: partition
issue: https://go.dev/issue/68771
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.16.0
---
counter: gopls/telemetryprompt/accepted
title: Count of Telemetry Prompt Acceptances
description: measure how often the gopls prompt to enable telemetry is accepted
type: partition
issue: https://go.dev/issue/68770
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.16.0
---
counter: go/platform/host/darwin/major-version:{20,21,22,23,24,25,26,27,28}
title: Darwin OS Version (subtract 9 for macOS version)
description: count of invocations with each major Darwin OS version
type: partition
issue: https://go.dev/issue/71159
program: cmd/go
version: go1.23rc1
---
counter: vscode-go/tool/usage:{gotests,gomodifytags,goplay}
title: Tools used by vscode-go
description: measure the tool usage triggered by vscode-go
type: partition
issue: https://go.dev/issue/73036
program: github.com/golang/vscode-go/vscgo
module: github.com/golang/vscode-go
version: v0.47.0
---
counter: crash/crash
title: Unexpected Delve crashes
description: stacks of goroutines running when Delve crashes
type: stack
issue: https://go.dev/issue/72129
program: github.com/go-delve/delve/cmd/dlv
module: github.com/go-delve/delve
depth: 16
version: v1.24.2
---
counter: delve/bug
title: Delve Internal Errors
description: counts stacks for internal debugger errors
type: stack
issue: https://go.dev/issue/72129
program: github.com/go-delve/delve/cmd/dlv
module: github.com/go-delve/delve
depth: 16
version: v1.24.2
---
counter: gopls/mcp-headless:{stdio,sse}
title: Headless MCP Server
description: counts initializations of Go MCP server in headless mode running on stdio or sse
type: stack
issue: https://github.com/golang/go/issues/74341
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.20.0
---
counter: gopls/mcp
title: Attached MCP Server
description: counts initializations of Go MCP server in attached mode
type: stack
issue: https://github.com/golang/go/issues/74341
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.20.0
---
counter: gopls/structtags:{add,remove}
title: Struct Tags Refactoring
description: use of add and remove struct tags refactoring codeaction
type: stack
issue: https://github.com/golang/go/issues/74628
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.20.0
---
counter: gopls/changesig
title: Use of Change Signature
description: counts uses of change signature
type: stack
issue: https://github.com/golang/go/issues/74102
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.18.0
---
counter: gopls/rename
title: Use of Rename
description: counts uses of rename
type: stack
issue: https://github.com/golang/go/issues/74102
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.18.0
---
counter: gopls/inline:{call,variable}
title: Use of Inline
description: counts uses of inline
type: partition
issue: https://github.com/golang/go/issues/74102
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.18.0
---
counter: gopls/extract:{func,method,variable,variable-all}
title: Use of Extract
description: counts uses of extract
type: partition
issue: https://github.com/golang/go/issues/74102
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.18.0
---
counter: vscode-go/command/trigger:{
    gotests-command_palette,
    gotests-context_menu,
    gomodifytags-command_palette,
    gomodifytags-context_menu,
    gopls.add_test-command_palette,
    gopls.add_test-context_menu,
    gopls.add_test-code_action,
    gopls.modify_tags-command_palette,
    gopls.modify_tags-context_menu,
    gopls.modify_tags-code_action
}
title: vscode-go command trigger source
description: measure the command trigger in vscode-go
type: partition
issue: https://go.dev/issue/74869
program: github.com/golang/vscode-go/vscgo
module: github.com/golang/vscode-go
version: v0.49.1
---
counter: gopls/setting/codelens/vulncheck:{true,false}
title: Vulncheck Codelens Settings Usage
description: counts vulncheck codelens settings
type: partition
issue: https://github.com/golang/go/issues/75546
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0
---
counter: gopls/setting/codelenses/vulncheck:{true,false}
title: Vulncheck Codelenses Settings Usage
description: counts vulncheck codelens settings
type: partition
issue: https://github.com/golang/go/issues/75546
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0
---
counter: gopls/mcp-tool:{go_context,go_diagnostics,go_file_context,go_file_diagnostics,go_file_metadata,go_package_api,go_references,go_rename_symbol,go_search,go_symbol_references,go_workspace,go_vulncheck}
title: MCP Server Tool Usage
description: measure the tool usage triggered by the MCP server
type: partition
issue: https://github.com/golang/go/issues/75450
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0
---
counter: gopls/setting/vulncheck:{Off,Imports}
title: VulncheckMode Option Usage
description: counts VulncheckMode option settings
type: partition
issue: https://github.com/golang/go/issues/75657
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0
---
counter: gopls/renamekind:package
title: Use of Rename Package
description: counts uses of rename on a package declaration
type: stack
issue: https://github.com/golang/go/issues/75612
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.20.0
---
counter: gopls/cmd/source:{vulncheck-codelens,run_govulncheck-codelens}
title: Command Usage
description: counts command usage
type: partition
issue: https://github.com/golang/go/issues/75794
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0
---
counter: gopls/setting/staticcheck:{true,false}
title: staticcheck Option Usage
description: counts staticcheck option settings
type: partition
issue: https://github.com/golang/go/issues/75850
program: golang.org/x/tools/gopls
module: golang.org/x/tools/gopls
version: v0.21.0