(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func TestBackendBlockSearch(t *testing.T) { |
| 23 | t.Parallel() |
| 24 | // Trace |
| 25 | // This is a fully-populated trace that we search for every condition |
| 26 | wantTr := &Trace{ |
| 27 | TraceID: test.ValidTraceID(nil), |
| 28 | StartTimeUnixNano: uint64(1000 * time.Second), |
| 29 | EndTimeUnixNano: uint64(2000 * time.Second), |
| 30 | DurationNano: uint64((100 * time.Millisecond).Nanoseconds()), |
| 31 | RootServiceName: "RootService", |
| 32 | RootSpanName: "RootSpan", |
| 33 | ResourceSpans: []ResourceSpans{ |
| 34 | { |
| 35 | Resource: Resource{ |
| 36 | ServiceName: "myservice", |
| 37 | Cluster: ptr("cluster"), |
| 38 | Namespace: ptr("namespace"), |
| 39 | Pod: ptr("pod"), |
| 40 | Container: ptr("container"), |
| 41 | K8sClusterName: ptr("k8scluster"), |
| 42 | K8sNamespaceName: ptr("k8snamespace"), |
| 43 | K8sPodName: ptr("k8spod"), |
| 44 | K8sContainerName: ptr("k8scontainer"), |
| 45 | Attrs: []Attribute{ |
| 46 | attr("bat", "baz"), |
| 47 | }, |
| 48 | DedicatedAttributes: DedicatedAttributes{ |
| 49 | String01: ptr("dedicated-resource-attr-value-1"), |
| 50 | String02: ptr("dedicated-resource-attr-value-2"), |
| 51 | String03: ptr("dedicated-resource-attr-value-3"), |
| 52 | String04: ptr("dedicated-resource-attr-value-4"), |
| 53 | String05: ptr("dedicated-resource-attr-value-5"), |
| 54 | }, |
| 55 | }, |
| 56 | ScopeSpans: []ScopeSpans{ |
| 57 | { |
| 58 | Spans: []Span{ |
| 59 | { |
| 60 | Name: "hello", |
| 61 | HttpMethod: ptr("get"), |
| 62 | HttpUrl: ptr("url/hello/world"), |
| 63 | HttpStatusCode: ptr(int64(500)), |
| 64 | SpanID: []byte{}, |
| 65 | ParentSpanID: []byte{}, |
| 66 | StatusCode: int(v1.Status_STATUS_CODE_ERROR), |
| 67 | Attrs: []Attribute{ |
| 68 | attr("foo", "bar"), |
| 69 | }, |
| 70 | DedicatedAttributes: DedicatedAttributes{ |
| 71 | String01: ptr("dedicated-span-attr-value-1"), |
| 72 | String02: ptr("dedicated-span-attr-value-2"), |
| 73 | String03: ptr("dedicated-span-attr-value-3"), |
| 74 | String04: ptr("dedicated-span-attr-value-4"), |
| 75 | String05: ptr(test.DedicatedBlobTestString()), |
| 76 | }, |
| 77 | }, |
| 78 | }, |
| 79 | }, |
nothing calls this directly
no test coverage detected