Add history trace command #5001
Annotations
3 errors
Generate annotations:
util/otelutil/jaeger_test.go#L26
=== RUN TestJaegerData
jaeger_test.go:26:
Error Trace: D:/a/buildx/buildx/util/otelutil/jaeger_test.go:26
Error: Not equal:
expected: "{\r\n \"data\": [\r\n {\r\n \"traceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"spans\": [\r\n {\r\n \"traceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"spanID\": \"f5f33ab2ca194d1b\",\r\n \"operationName\": \"moby.buildkit.v1.Control/ListWorkers\",\r\n \"references\": [\r\n {\r\n \"refType\": \"CHILD_OF\",\r\n \"traceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"spanID\": \"c1b335eeeaf56405\"\r\n }\r\n ],\r\n \"startTime\": 1705071460147265,\r\n \"duration\": 17263,\r\n \"tags\": [\r\n {\r\n \"key\": \"rpc.system\",\r\n \"type\": \"string\",\r\n \"value\": \"grpc\"\r\n },\r\n {\r\n \"key\": \"rpc.service\",\r\n \"type\": \"string\",\r\n \"value\": \"moby.buildkit.v1.Control\"\r\n },\r\n {\r\n \"key\": \"rpc.method\",\r\n \"type\": \"string\",\r\n \"value\": \"ListWorkers\"\r\n },\r\n {\r\n \"key\": \"rpc.grpc.status_code\",\r\n \"type\": \"int64\",\r\n \"value\": 0\r\n },\r\n {\r\n \"key\": \"otel.library.name\",\r\n \"type\": \"string\",\r\n \"value\": \"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc\"\r\n },\r\n {\r\n \"key\": \"otel.library.version\",\r\n \"type\": \"string\",\r\n \"value\": \"semver:0.40.0\"\r\n },\r\n {\r\n \"key\": \"span.kind\",\r\n \"type\": \"string\",\r\n \"value\": \"client\"\r\n },\r\n {\r\n \"key\": \"otel.status_code\",\r\n \"type\": \"string\",\r\n \"value\": \"OK\"\r\n }\r\n ],\r\n \"logs\": [\r\n {\r\n \"timestamp\": 1705071460147281,\r\n \"fields\": [\r\n {\r\n \"key\": \"event\",\r\n \"type\": \"string\",\r\n \"value\": \"message\"\r\n },\r\n {\r\n \"key\": \"message.type\",\r\n \"type\": \"string\",\r\n \"value\": \"SENT\"\r\n },\r\n {\r\n \"key\": \"message.id\",\r\n \"type\": \"int64\",\r\n \"value\": 1\r\n }\r\n ]\r\n },\r\n {\r\n \"timestamp\": 1705071460164526,\r\n \"fields\": [\r\n {\r\n \"key\": \"event\",\r\n \"type\": \"string\",\r\n \"value\": \"message\"\r\n },\r\n {\r\n \"key\": \"message.type\",\r\n \"type\": \"string\",\r\n \"value\": \"RECEIVED\"\r\n },\r\n {\r\n \"key\": \"message.id\",\r\n \"type\": \"int64\",\r\n \"value\": 1\r\n }\r\n ]\r\n }\r\n ],\r\n \"processID\": \"p0\",\r\n \"warnings\": null\r\n },\r\n {\r\n \"traceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"spanID\": \"1f64b377d3d03600\",\r\n \"operationName\": \"moby.buildkit.v1.frontend.LLBBridge/Ping\",\r\n \"references\": [\r\n {\r\n \"refType\": \"CHILD_OF\",\r\n \"traceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"spanID\": \"c1b335eeeaf56405\"\r\n }\r\n ],\r\n \"star
|
Generate annotations:
util/otelutil/span_test.go#L33
=== RUN TestParseSpanStubs
span_test.go:33:
Error Trace: D:/a/buildx/buildx/util/otelutil/span_test.go:33
Error: Not equal:
expected: "[\r\n {\r\n \"Name\": \"moby.buildkit.v1.Control/ListWorkers\",\r\n \"SpanContext\": {\r\n \"TraceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"SpanID\": \"f5f33ab2ca194d1b\",\r\n \"TraceFlags\": \"00\",\r\n \"TraceState\": \"\",\r\n \"Remote\": false\r\n },\r\n \"Parent\": {\r\n \"TraceID\": \"0555ce1903feb85770d102846273073b\",\r\n \"SpanID\": \"c1b335eeeaf56405\",\r\n \"TraceFlags\": \"00\",\r\n \"TraceState\": \"\",\r\n \"Remote\": false\r\n },\r\n \"SpanKind\": 3,\r\n \"StartTime\": \"2024-01-12T14:57:40.147265775Z\",\r\n \"EndTime\": \"2024-01-12T14:57:40.164529263Z\",\r\n \"Attributes\": [\r\n {\r\n \"Key\": \"rpc.system\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"grpc\"\r\n }\r\n },\r\n {\r\n \"Key\": \"rpc.service\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"moby.buildkit.v1.Control\"\r\n }\r\n },\r\n {\r\n \"Key\": \"rpc.method\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"ListWorkers\"\r\n }\r\n },\r\n {\r\n \"Key\": \"rpc.grpc.status_code\",\r\n \"Value\": {\r\n \"Type\": \"INT64\",\r\n \"Value\": 0\r\n }\r\n }\r\n ],\r\n \"Events\": [\r\n {\r\n \"Name\": \"message\",\r\n \"Attributes\": [\r\n {\r\n \"Key\": \"message.type\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"SENT\"\r\n }\r\n },\r\n {\r\n \"Key\": \"message.id\",\r\n \"Value\": {\r\n \"Type\": \"INT64\",\r\n \"Value\": 1\r\n }\r\n }\r\n ],\r\n \"DroppedAttributeCount\": 0,\r\n \"Time\": \"2024-01-12T14:57:40.147281524Z\"\r\n },\r\n {\r\n \"Name\": \"message\",\r\n \"Attributes\": [\r\n {\r\n \"Key\": \"message.type\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"RECEIVED\"\r\n }\r\n },\r\n {\r\n \"Key\": \"message.id\",\r\n \"Value\": {\r\n \"Type\": \"INT64\",\r\n \"Value\": 1\r\n }\r\n }\r\n ],\r\n \"DroppedAttributeCount\": 0,\r\n \"Time\": \"2024-01-12T14:57:40.164526618Z\"\r\n }\r\n ],\r\n \"Links\": null,\r\n \"Status\": {\r\n \"Code\": \"Ok\",\r\n \"Description\": \"\"\r\n },\r\n \"DroppedAttributes\": 0,\r\n \"DroppedEvents\": 0,\r\n \"DroppedLinks\": 0,\r\n \"ChildSpanCount\": 0,\r\n \"Resource\": [\r\n {\r\n \"Key\": \"service.name\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"buildx\"\r\n }\r\n },\r\n {\r\n \"Key\": \"telemetry.sdk.language\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"go\"\r\n }\r\n },\r\n {\r\n \"Key\": \"telemetry.sdk.name\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"opentelemetry\"\r\n }\r\n },\r\n {\r\n \"Key\": \"telemetry.sdk.version\",\r\n \"Value\": {\r\n \"Type\": \"STRING\",\r\n \"Value\": \"1.14.0\"\r\n }\r\n }\r\n ],\r\n \"InstrumentationLibrary\": {\r\n \"Name\": \"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc\",\r\n \"Version\": \"semver:0.40.0\",\r\n \"SchemaURL\": \"\"\r\n }\r\n },\r\n {\r\n \"Name\": \"moby.buildkit.v1.frontend.LLBBridge/Ping\",\r\n \"SpanContext\": {\r\n \"TraceID\": \"0555ce1903feb85770d102846273073b\",
|
Test
Process completed with exit code 1.
|
Loading