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

Function GetDocsContent

modules/frontend/docs/docs.go:27–40  ·  view source on GitHub ↗

GetDocsContent returns the appropriate documentation content based on the doc type

(docType string)

Source from the content-addressed store, hash-verified

25
26// GetDocsContent returns the appropriate documentation content based on the doc type
27func GetDocsContent(docType string) string {
28 switch docType {
29 case DocsTypeBasic:
30 return docsBasic
31 case DocsTypeAggregates:
32 return docsAggregates
33 case DocsTypeStructural:
34 return docsStructural
35 case DocsTypeMetrics:
36 return docsMetrics
37 default:
38 return docsBasic // fallback to basic docs
39 }
40}

Callers 1

handleTraceQLDocsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected