Debian Codegraph @

gopls/internal/mcp/counters.go

raw symbols SCIP
1 // Copyright 2025 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package mcp
6
7 import "golang.org/x/telemetry/counter"
8
9 // Proposed counters for evaluating usage of Go MCP Server tools. These counters
10 // increment when a user utilizes a specific Go MCP tool.
11 var (
12 countGoContextMCP = counter.New("gopls/mcp-tool:go_context")
13 countGoDiagnosticsMCP = counter.New("gopls/mcp-tool:go_diagnostics")
14 countGoFileContextMCP = counter.New("gopls/mcp-tool:go_file_context")
15 countGoFileDiagnosticsMCP = counter.New("gopls/mcp-tool:go_file_diagnostics")
16 countGoFileMetadataMCP = counter.New("gopls/mcp-tool:go_file_metadata")
17 countGoPackageAPIMCP = counter.New("gopls/mcp-tool:go_package_api")
18 countGoReferencesMCP = counter.New("gopls/mcp-tool:go_references")
19 countGoRenameSymbolMCP = counter.New("gopls/mcp-tool:go_rename_symbol")
20 countGoSearchMCP = counter.New("gopls/mcp-tool:go_search")
21 countGoSymbolReferencesMCP = counter.New("gopls/mcp-tool:go_symbol_references")
22 countGoWorkspaceMCP = counter.New("gopls/mcp-tool:go_workspace")
23 countGoVulncheckMCP = counter.New("gopls/mcp-tool:go_vulncheck")
24 )