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

Function makeScope

modules/distributor/distributor_test.go:1811–1819  ·  view source on GitHub ↗
(spans ...*v1.Span)

Source from the content-addressed store, hash-verified

1809}
1810
1811func makeScope(spans ...*v1.Span) *v1.ScopeSpans {
1812 return &v1.ScopeSpans{
1813 Scope: &v1_common.InstrumentationScope{
1814 Name: "super library",
1815 Version: "0.0.1",
1816 },
1817 Spans: spans,
1818 }
1819}
1820
1821func makeResourceSpans(serviceName string, ils []*v1.ScopeSpans, attributes ...*v1_common.KeyValue) *v1.ResourceSpans {
1822 rs := &v1.ResourceSpans{

Callers 3

TestLogReceivedSpansFunction · 0.85
TestRateLimitRespectedFunction · 0.85
TestArtificialLatencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected