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

Function randomMethod

pkg/drain/testdata/generate-random-span-names/main.go:136–145  ·  view source on GitHub ↗
(r *rand.Rand)

Source from the content-addressed store, hash-verified

134}
135
136func randomMethod(r *rand.Rand) string {
137 methods := []string{
138 "GET",
139 "POST",
140 "PUT",
141 "DELETE",
142 "PATCH",
143 }
144 return methods[r.Intn(len(methods))]
145}
146
147func randomWordList(r *rand.Rand) string {
148 length := r.Intn(10) + 1

Callers 1

generateFeatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected