Files
grafana/pkg/tsdb/jaeger/testdata/complex_trace_grpc.golden.jsonc
T
Jocelyn Collado-Kuri d0ea82633f Jaeger: Migrate API calls to gRPC endpoint (#113297)
* Jaeger: Migrate Services and Operations to the gRPC Jaeger endpoint (#112384)

* add grpc feature toggle

* move types into types.go

* creates grpc client functions for services and operations

* Call grpc services function when feature flag is enabled for health check

* remove unnecessary double encoding

* check for successful status code before decoding response and return nil in case of successful response

* remove duplicate code

* use variable

* fix error type in testsz

* Jaeger: Migrate search and Trace Search calls to use gRPC endpoint (#112610)

* move all types into types package except for JagerClient

* move all helper functions into utils package

* change return type of search function to be frames and add grpc search functionality

* fix tests

* fix types and the way we check error response from grpc

* change trace name and duration unit conversion

* fix types and add tests

* support queryAttributes

* quick limit implementation in post processing

* add todo for attributes / tags

* make trace functionality ready to support grpc flow

* add functions to process search response for a specific trace and create the Trace frame

* tests for helper funtions

* remove grpc querying for now!

* change logic to be able to process and support multiple resource spans

* remove logic for gRPC from grpc_client.go

* add equivalent fields for logs and references

* add tests for grpcTraceResponse function

* fix types after merge with main

* fix status code checks and return nil for error on successful responses

* enable reading through config flag for trace search

* create sigle key value type since they are similar for OTLP and non OTLP based formats

* reference right type

* convert events and links into references and logs

* add status code, status message and kind to data frame

* fix tests to accomodate new format

* remove unused function and add more tests

* remove edit flag for jsonc golden test files

* add clarifying comment

* fix tests and linting

* fix golden files for testing

* fix typo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix typo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix typo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* add clarifying comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* remove unnecessary logging statement

* fix downstream errors

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use downstreamerrorf where applicable and add missing downstream eror sources.

* tests

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-31 11:19:16 -07:00

404 lines
17 KiB
JSON

// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "custom": {
// "traceFormat": "jaeger"
// },
// "preferredVisualisationType": "trace"
// }
// Name: test
// Dimensions: 14 Fields by 3 Rows
// +------------------+------------------+--------------------+------------------+---------------------+----------------+--------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
// | Name: traceID | Name: spanID | Name: parentSpanID | Name: statusCode | Name: statusMessage | Name: kind | Name: operationName | Name: serviceName | Name: serviceTags | Name: startTime | Name: duration | Name: logs | Name: references | Name: tags |
// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: |
// | Type: []string | Type: []string | Type: []string | Type: []int64 | Type: []string | Type: []string | Type: []string | Type: []string | Type: []json.RawMessage | Type: []float64 | Type: []float64 | Type: []json.RawMessage | Type: []json.RawMessage | Type: []json.RawMessage |
// +------------------+------------------+--------------------+------------------+---------------------+----------------+--------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
// | 3fa414edcef6ad90 | 3fa414edcef6ad90 | | 0 | | unspecified | HTTP GET - api_traces_traceid | tempo-querier | [{"key":"service.name","type":"string","value":"tempo-querier"},{"key":"cluster","type":"string","value":"ops-tools1"},{"key":"container","type":"string","value":"tempo-storage"},{"key":"version","type":"string","value":"2.0.1"}] | 1.6058738946804092e+12 | 1049.140992 | [{"timestamp":1605873894681000,"fields":[{"key":"event","type":"string","value":"error"},{"key":"message","type":"string","value":"Internal server error"}],"name":""}] | [] | [{"key":"sampler.type","type":"string","value":"probabilistic"},{"key":"sampler.param","type":"float64","value":1},{"key":"error","type":"boolean","value":true},{"key":"http.status_code","type":"int64","value":500}] |
// | 3fa414edcef6ad90 | 0f5c1808567e4403 | | 0 | | unspecified | /tempopb.Querier/FindTraceByID | tempo-querier | [{"key":"service.name","type":"string","value":"tempo-querier"},{"key":"cluster","type":"string","value":"ops-tools1"},{"key":"container","type":"string","value":"tempo-storage"},{"key":"version","type":"string","value":"2.0.1"}] | 1.605873894680587e+12 | 1.84704 | [{"timestamp":1605873894680700,"fields":[{"key":"event","type":"string","value":"error"},{"key":"message","type":"string","value":"gRPC error: INTERNAL"}],"name":""}] | [{"refType":"","spanID":"3fa414edcef6ad90","traceID":"3fa414edcef6ad90"}] | [{"key":"component","type":"string","value":"gRPC"},{"key":"span.kind","type":"string","value":"client"},{"key":"error","type":"boolean","value":true},{"key":"grpc.status_code","type":"int64","value":13}] |
// | 3fa414edcef6ad90 | 1a2b3c4d5e6f7g8h | | 0 | | unspecified | db.query | tempo-storage | [{"key":"service.name","type":"string","value":"tempo-storage"},{"key":"cluster","type":"string","value":"ops-tools1"},{"key":"container","type":"string","value":"tempo-storage"},{"key":"version","type":"string","value":"2.0.1"}] | 1.6058738946808e+12 | 0.499968 | [{"timestamp":1605873894681000,"fields":[{"key":"event","type":"string","value":"error"},{"key":"message","type":"string","value":"Database connection timeout"}],"name":""}] | [{"refType":"","spanID":"0f5c1808567e4403","traceID":"3fa414edcef6ad90"}] | [{"key":"db.type","type":"string","value":"postgresql"},{"key":"db.statement","type":"string","value":"SELECT * FROM traces WHERE id = $1"},{"key":"error","type":"boolean","value":true}] |
// +------------------+------------------+--------------------+------------------+---------------------+----------------+--------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "test",
"meta": {
"typeVersion": [
0,
0
],
"custom": {
"traceFormat": "jaeger"
},
"preferredVisualisationType": "trace"
},
"fields": [
{
"name": "traceID",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "spanID",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "parentSpanID",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "statusCode",
"type": "number",
"typeInfo": {
"frame": "int64"
}
},
{
"name": "statusMessage",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "kind",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "operationName",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "serviceName",
"type": "string",
"typeInfo": {
"frame": "string"
}
},
{
"name": "serviceTags",
"type": "other",
"typeInfo": {
"frame": "json.RawMessage"
}
},
{
"name": "startTime",
"type": "number",
"typeInfo": {
"frame": "float64"
}
},
{
"name": "duration",
"type": "number",
"typeInfo": {
"frame": "float64"
}
},
{
"name": "logs",
"type": "other",
"typeInfo": {
"frame": "json.RawMessage"
}
},
{
"name": "references",
"type": "other",
"typeInfo": {
"frame": "json.RawMessage"
}
},
{
"name": "tags",
"type": "other",
"typeInfo": {
"frame": "json.RawMessage"
}
}
]
},
"data": {
"values": [
[
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90"
],
[
"3fa414edcef6ad90",
"0f5c1808567e4403",
"1a2b3c4d5e6f7g8h"
],
[
"",
"",
""
],
[
0,
0,
0
],
[
"",
"",
""
],
[
"unspecified",
"unspecified",
"unspecified"
],
[
"HTTP GET - api_traces_traceid",
"/tempopb.Querier/FindTraceByID",
"db.query"
],
[
"tempo-querier",
"tempo-querier",
"tempo-storage"
],
[
[
{
"key": "service.name",
"type": "string",
"value": "tempo-querier"
},
{
"key": "cluster",
"type": "string",
"value": "ops-tools1"
},
{
"key": "container",
"type": "string",
"value": "tempo-storage"
},
{
"key": "version",
"type": "string",
"value": "2.0.1"
}
],
[
{
"key": "service.name",
"type": "string",
"value": "tempo-querier"
},
{
"key": "cluster",
"type": "string",
"value": "ops-tools1"
},
{
"key": "container",
"type": "string",
"value": "tempo-storage"
},
{
"key": "version",
"type": "string",
"value": "2.0.1"
}
],
[
{
"key": "service.name",
"type": "string",
"value": "tempo-storage"
},
{
"key": "cluster",
"type": "string",
"value": "ops-tools1"
},
{
"key": "container",
"type": "string",
"value": "tempo-storage"
},
{
"key": "version",
"type": "string",
"value": "2.0.1"
}
]
],
[
1605873894680.4092,
1605873894680.587,
1605873894680.8
],
[
1049.140992,
1.84704,
0.499968
],
[
[
{
"timestamp": 1605873894681000,
"fields": [
{
"key": "event",
"type": "string",
"value": "error"
},
{
"key": "message",
"type": "string",
"value": "Internal server error"
}
],
"name": ""
}
],
[
{
"timestamp": 1605873894680700,
"fields": [
{
"key": "event",
"type": "string",
"value": "error"
},
{
"key": "message",
"type": "string",
"value": "gRPC error: INTERNAL"
}
],
"name": ""
}
],
[
{
"timestamp": 1605873894681000,
"fields": [
{
"key": "event",
"type": "string",
"value": "error"
},
{
"key": "message",
"type": "string",
"value": "Database connection timeout"
}
],
"name": ""
}
]
],
[
[],
[
{
"refType": "",
"spanID": "3fa414edcef6ad90",
"traceID": "3fa414edcef6ad90"
}
],
[
{
"refType": "",
"spanID": "0f5c1808567e4403",
"traceID": "3fa414edcef6ad90"
}
]
],
[
[
{
"key": "sampler.type",
"type": "string",
"value": "probabilistic"
},
{
"key": "sampler.param",
"type": "float64",
"value": 1
},
{
"key": "error",
"type": "boolean",
"value": true
},
{
"key": "http.status_code",
"type": "int64",
"value": 500
}
],
[
{
"key": "component",
"type": "string",
"value": "gRPC"
},
{
"key": "span.kind",
"type": "string",
"value": "client"
},
{
"key": "error",
"type": "boolean",
"value": true
},
{
"key": "grpc.status_code",
"type": "int64",
"value": 13
}
],
[
{
"key": "db.type",
"type": "string",
"value": "postgresql"
},
{
"key": "db.statement",
"type": "string",
"value": "SELECT * FROM traces WHERE id = $1"
},
{
"key": "error",
"type": "boolean",
"value": true
}
]
]
]
}
}
]
}