Tempo: add ability to upload trace json (#37407)

* Tempo: upload json

* Add test for upload

* Minor changes

* Add docs

* Update docs/sources/datasources/tempo.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Add graphframes as well to upload

* Add comments to code

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Zoltán Bedi
2021-08-05 15:13:44 +02:00
committed by GitHub
parent 5a54deb38b
commit e0010860bd
9 changed files with 690 additions and 11 deletions

View File

@@ -102,6 +102,7 @@ func resourceSpansToRows(rs pdata.ResourceSpans) ([][]interface{}, error) {
}
func spanToSpanRow(span pdata.Span, libraryTags pdata.InstrumentationLibrary, resource pdata.Resource) ([]interface{}, error) {
// If the id representation changed from hexstring to something else we need to change the transformBase64IDToHexString in the frontend code
traceID := span.TraceID().HexString()
traceID = strings.TrimLeft(traceID, "0")