grafana/pkg
Andre Pereira c1709c9301
Tempo: TraceQL query response streaming (#69212)
* Refactor Tempo datasource backend to support multiple queryData types.
Added traceId query type that is set when performing the request but doesn't map to a tab.

* WIP data is reaching the frontend

* WIP

* Use channels and goroutines

* Some fixes

* Simplify backend code.
Return traces, metrics, state and error in a dataframe.
Shared state type between FE and BE.
Use getStream() instead of getQueryData()

* Handle errors in frontend

* Update Tempo and use same URL for RPC and HTTP

* Cleanup backend code

* Merge main

* Create grpc client only with host and authenticate

* Create grpc client only with host and authenticate

* Cleanup

* Add streaming to TraceQL Search tab

* Fix merge conflicts

* Added tests for processStream

* make gen-cue

* make gen-cue

* goimports

* lint

* Cleanup go.mod

* Comments

* Addressing PR comments

* Fix streaming for tracel search tab

* Added streaming kill switch as the disableTraceQLStreaming feature toggle

* Small comment

* Fix conflicts

* Correctly capture and send all errors as a DF to client

* Fix infinite error loop

* Fix merge conflicts

* Fix test

* Update deprecated import

* Fix feature toggles gen

* Fix merge conflicts
2023-07-14 15:10:46 +01:00
..
api Plugins: Use suffix for plugin directory (#71375) 2023-07-14 11:49:05 +02:00
build Chore: Generate plugin version and remove lineage version (#69781) 2023-06-27 12:47:14 +03:00
bus Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
cmd Plugins: Use suffix for plugin directory (#71375) 2023-07-14 11:49:05 +02:00
codegen Core: Update thema, cuetsy and cue fork (#71527) 2023-07-13 17:29:38 +03:00
components ApiKeyGenPrefix: rename package (#65623) 2023-03-30 17:04:10 +02:00
cuectx Kinds: publish kinds to kind registry (#67515) 2023-06-13 14:01:29 +02:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr SSE: Support for ML query node (#69963) 2023-07-13 20:37:50 +03:00
extensions Tempo: TraceQL query response streaming (#69212) 2023-07-14 15:10:46 +01:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Slug: Use urlencoding to support non-ASCII characters (#70691) 2023-07-10 21:05:39 +02:00
kinds Core: Update thema, cuetsy and cue fork (#71527) 2023-07-13 17:29:38 +03:00
kindsysreport Kinds: Fix report generation (#71048) 2023-07-05 14:58:00 -04:00
login OAuth: Introduce user_refresh_token setting and make it default for the selected providers (#71533) 2023-07-14 14:03:01 +02:00
middleware api: ignore /api/gnet proxy when gzipping responses (#71437) 2023-07-13 07:51:25 +01:00
mocks/mock_gcsifaces Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
models Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
modules Chore: Convert background service registry to dskit module (#64062) 2023-07-06 14:45:47 +02:00
plugins Plugins: Use suffix for plugin directory (#71375) 2023-07-14 11:49:05 +02:00
registry Schema: Remove ServiceAccount kind (#69194) 2023-06-01 07:02:17 -07:00
server Plugins: Angular detector: Add database cache store for remote patterns (#70693) 2023-07-06 17:34:27 +03:00
services Tempo: TraceQL query response streaming (#69212) 2023-07-14 15:10:46 +01:00
setting Settings: Add tests for handleAWSConfig (#71486) 2023-07-14 13:04:12 +02:00
systemd Chore: Convert background service registry to dskit module (#64062) 2023-07-06 14:45:47 +02:00
tests Chore: Convert background service registry to dskit module (#64062) 2023-07-06 14:45:47 +02:00
tsdb Tempo: TraceQL query response streaming (#69212) 2023-07-14 15:10:46 +01:00
util Feat: Match allowed cookies with optional character (#71047) 2023-07-05 16:12:56 +02:00
web Alerting: Add limits and filters to Prometheus Rules API (#66627) 2023-04-17 17:45:06 +01:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.