MCPcopy
hub / github.com/grafana/tempo / buildPath

Method buildPath

modules/frontend/mcp_tools.go:372–374  ·  view source on GitHub ↗

buildPath is a helper method to build a path with the path prefix

(p string)

Source from the content-addressed store, hash-verified

370
371// buildPath is a helper method to build a path with the path prefix
372func (s *MCPServer) buildPath(p string) string {
373 return path.Join(s.pathPrefix, p)
374}
375
376func toolResult(body string, contentType string, encoding string, version string) *mcp.CallToolResult {
377 res := mcp.NewToolResultText(body)

Callers 6

handleSearchMethod · 0.95
handleInstantQueryMethod · 0.95
handleRangeQueryMethod · 0.95
handleGetTraceMethod · 0.95

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected