-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AzureMonitor: Allow
serviceTags
and tags
to be empty for trace re…
- Loading branch information
1 parent
8a8758a
commit 5b99f5f
Showing
4 changed files
with
268 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
pkg/tsdb/azuremonitor/testdata/traces/3-traces-empty-dynamics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"tables": [ | ||
{ | ||
"name": "PrimaryResult", | ||
"columns": [ | ||
{ | ||
"name": "traceID", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "spanID", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "parentSpanID", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "duration", | ||
"type": "real" | ||
}, | ||
{ | ||
"name": "serviceName", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "operationName", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "startTime", | ||
"type": "datetime" | ||
}, | ||
{ | ||
"name": "serviceTags", | ||
"type": "dynamic" | ||
}, | ||
{ | ||
"name": "tags", | ||
"type": "dynamic" | ||
}, | ||
{ | ||
"name": "itemId", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "itemType", | ||
"type": "string" | ||
} | ||
], | ||
"rows": [ | ||
[ | ||
"cfae497bfd7a44169f35643940820938", | ||
"b52403c5-5b27-43a8-9bc6-5938667a4470", | ||
"|cfae497bfd7a44169f35643940820938.", | ||
0, | ||
"", | ||
"GET /github/grafana/grafana/commits", | ||
"2023-04-17T14:58:10.176Z", | ||
"{}", | ||
"{}", | ||
"65863e6b-dd30-11ed-a808-002248268105", | ||
"trace" | ||
] | ||
] | ||
} | ||
] | ||
} | ||
|
192 changes: 192 additions & 0 deletions
192
...es/3-traces-empty-dynamics.json.single-trace-with-empty-serviceTags-and-tags.golden.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
// 🌟 This was machine generated. Do not edit. 🌟 | ||
// | ||
// Frame[0] { | ||
// "typeVersion": [ | ||
// 0, | ||
// 0 | ||
// ], | ||
// "custom": { | ||
// "azureColumnTypes": [ | ||
// "string", | ||
// "string", | ||
// "string", | ||
// "real", | ||
// "string", | ||
// "string", | ||
// "datetime", | ||
// "dynamic", | ||
// "dynamic", | ||
// "string", | ||
// "string" | ||
// ] | ||
// } | ||
// } | ||
// Name: | ||
// Dimensions: 11 Fields by 1 Rows | ||
// +----------------------------------+--------------------------------------+------------------------------------+------------------+-------------------+-------------------------------------+-----------------------------------+--------------------------+--------------------------+--------------------------------------+-----------------+ | ||
// | Name: traceID | Name: spanID | Name: parentSpanID | Name: duration | Name: serviceName | Name: operationName | Name: startTime | Name: serviceTags | Name: tags | Name: itemId | Name: itemType | | ||
// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | | ||
// | Type: []*string | Type: []*string | Type: []*string | Type: []*float64 | Type: []*string | Type: []*string | Type: []*time.Time | Type: []*json.RawMessage | Type: []*json.RawMessage | Type: []*string | Type: []*string | | ||
// +----------------------------------+--------------------------------------+------------------------------------+------------------+-------------------+-------------------------------------+-----------------------------------+--------------------------+--------------------------+--------------------------------------+-----------------+ | ||
// | cfae497bfd7a44169f35643940820938 | b52403c5-5b27-43a8-9bc6-5938667a4470 | |cfae497bfd7a44169f35643940820938. | 0 | | GET /github/grafana/grafana/commits | 2023-04-17 14:58:10.176 +0000 UTC | [] | [] | 65863e6b-dd30-11ed-a808-002248268105 | trace | | ||
// +----------------------------------+--------------------------------------+------------------------------------+------------------+-------------------+-------------------------------------+-----------------------------------+--------------------------+--------------------------+--------------------------------------+-----------------+ | ||
// | ||
// | ||
// 🌟 This was machine generated. Do not edit. 🌟 | ||
{ | ||
"status": 200, | ||
"frames": [ | ||
{ | ||
"schema": { | ||
"meta": { | ||
"typeVersion": [ | ||
0, | ||
0 | ||
], | ||
"custom": { | ||
"azureColumnTypes": [ | ||
"string", | ||
"string", | ||
"string", | ||
"real", | ||
"string", | ||
"string", | ||
"datetime", | ||
"dynamic", | ||
"dynamic", | ||
"string", | ||
"string" | ||
] | ||
} | ||
}, | ||
"fields": [ | ||
{ | ||
"name": "traceID", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "spanID", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "parentSpanID", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "duration", | ||
"type": "number", | ||
"typeInfo": { | ||
"frame": "float64", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "serviceName", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "operationName", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "startTime", | ||
"type": "time", | ||
"typeInfo": { | ||
"frame": "time.Time", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "serviceTags", | ||
"type": "other", | ||
"typeInfo": { | ||
"frame": "json.RawMessage", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "tags", | ||
"type": "other", | ||
"typeInfo": { | ||
"frame": "json.RawMessage", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "itemId", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
}, | ||
{ | ||
"name": "itemType", | ||
"type": "string", | ||
"typeInfo": { | ||
"frame": "string", | ||
"nullable": true | ||
} | ||
} | ||
] | ||
}, | ||
"data": { | ||
"values": [ | ||
[ | ||
"cfae497bfd7a44169f35643940820938" | ||
], | ||
[ | ||
"b52403c5-5b27-43a8-9bc6-5938667a4470" | ||
], | ||
[ | ||
"|cfae497bfd7a44169f35643940820938." | ||
], | ||
[ | ||
0 | ||
], | ||
[ | ||
"" | ||
], | ||
[ | ||
"GET /github/grafana/grafana/commits" | ||
], | ||
[ | ||
1681743490176 | ||
], | ||
[ | ||
[] | ||
], | ||
[ | ||
[] | ||
], | ||
[ | ||
"65863e6b-dd30-11ed-a808-002248268105" | ||
], | ||
[ | ||
"trace" | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} |