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

Function randomProtocol

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

Source from the content-addressed store, hash-verified

118}
119
120func randomProtocol(r *rand.Rand) string {
121 protocols := []string{
122 "http",
123 "https",
124 "tcp",
125 "udp",
126 }
127 return protocols[r.Intn(len(protocols))]
128}
129
130func randomBytes(r *rand.Rand, n int) []byte {
131 buf := make([]byte, n)

Callers 1

generateFeatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected