Tempo: Download span references in data inspector (#47074)

* Tempo: Download span references in data inspector
This commit is contained in:
Connor Lindsey
2022-03-31 08:30:22 -06:00
committed by GitHub
parent a571fcda6e
commit 5a87d12e8c
5 changed files with 694 additions and 94 deletions

View File

@@ -1928,7 +1928,23 @@ export const otlpDataFrameFromResponse = new MutableDataFrame({
type: 'other',
config: {},
labels: undefined,
values: [[]],
values: [
[
{
spanID: 'spanId',
traceID: 'traceId',
tags: [
{ key: 'key', value: 'Value' },
{ key: 'intValue', value: 4 },
],
},
{
spanID: 'spanId2',
traceID: 'traceId2',
tags: [],
},
],
],
state: {
displayName: 'references',
},
@@ -2118,6 +2134,32 @@ export const otlpDataFrameToResponse = new MutableDataFrame({
displayName: 'tags',
},
},
{
name: 'references',
type: 'other',
config: {},
labels: undefined,
values: [
[
{
spanID: 'spanId',
traceID: 'traceId',
tags: [
{ key: 'key', value: 'Value' },
{ key: 'intValue', value: 4 },
],
},
{
spanID: 'spanId2',
traceID: 'traceId2',
tags: [],
},
],
],
state: {
displayName: 'references',
},
},
],
first: ['60ba2abb44f13eae'],
length: 1,
@@ -2153,6 +2195,31 @@ export const otlpResponse = {
{ key: 'http.url', value: { stringValue: '/' } },
{ key: 'component', value: { stringValue: 'net/http' } },
],
links: [
{
spanId: 'spanId',
traceId: 'traceId',
attributes: [
{
key: 'key',
value: {
stringValue: 'Value',
},
},
{
key: 'intValue',
value: {
intValue: 4,
},
},
],
},
{
spanId: 'spanId2',
traceId: 'traceId2',
attributes: [],
},
],
},
],
},