grafana/pkg/services/alerting
idafurjes 30aa24a183
Chore: Implement OpenTelemtry in Grafana (#42674)
* Separate Tracer interface to TracerService and Tracer

* Fix lint

* Fix:Make it possible to start spans for both opentracing and opentelemetry in ds proxy

* Add span methods, use span interface for rest of tracing

* Fix logs in tracing

* Fix tests that are related to tracing

* Fix resourcepermissions test

* Fix some tests

* Fix more tests

* Add TracingService to wire cli runner

* Remove GlobalTracer from bus

* Renaming test function

* Remove GlobalTracer from TSDB

* Replace GlobalTracer in api

* Adjust tests to the InitializeForTests func

* Remove GlobalTracer from services

* Remove GlobalTracer

* Remove bus.NewTest

* Remove Tracer interface

* Add InitializeForBus

* Simplify tests

* Clean up tests

* Rename TracerService to Tracer

* Update pkg/middleware/request_tracing.go

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Initialize tracer before passing it to SQLStore initialization in commands

* Remove tests for opentracing

* Set span attributes correctly, remove unnecessary trace initiliazation form test

* Add tracer instance to newSQLStore

* Fix changes due to rebase

* Add modified tracing middleware test

* Fix opentracing implementation tags

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-01-20 11:10:12 +01:00
..
conditions Chore: Implement OpenTelemtry in Grafana (#42674) 2022-01-20 11:10:12 +01:00
notifiers Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
testdata Alerting: improve error on failure to remove query referenced by legacy alerting (#42169) 2021-12-02 07:41:24 -08:00
alerting_usage_test.go Rename AddHandlerCtx to AddHandler (#43557) 2021-12-28 16:08:07 +01:00
alerting_usage.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
engine_integration_test.go Chore: Implement OpenTelemtry in Grafana (#42674) 2022-01-20 11:10:12 +01:00
engine_test.go Chore: Implement OpenTelemtry in Grafana (#42674) 2022-01-20 11:10:12 +01:00
engine.go Chore: Implement OpenTelemtry in Grafana (#42674) 2022-01-20 11:10:12 +01:00
eval_context_test.go Chore: Remove context.TODO() from services (#42555) 2021-12-20 17:05:33 +01:00
eval_context.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
eval_handler_test.go Chore: Remove context.TODO() from services (#42555) 2021-12-20 17:05:33 +01:00
eval_handler.go Chore: Refactor usage of legacy data contracts (#41218) 2021-11-10 11:52:16 +01:00
extractor_test.go Rename AddHandlerCtx to AddHandler (#43557) 2021-12-28 16:08:07 +01:00
extractor.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
interfaces.go Chore: Refactor usage of legacy data contracts (#41218) 2021-11-10 11:52:16 +01:00
models.go Chore: Fix various spelling errors in back-end code (#25241) 2020-06-01 17:11:25 +02:00
notifier_test.go Rename AddHandlerCtx to AddHandler (#43557) 2021-12-28 16:08:07 +01:00
notifier.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
reader.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
result_handler.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
rule_test.go Add context for GetAlertNotificationUidQuery (#41633) 2021-11-12 14:35:38 +01:00
rule.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
scheduler.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
service_test.go add context in the alert_notification (#41307) 2021-11-05 16:41:24 +08:00
service.go Rename AddHandlerCtx to AddHandler (#43557) 2021-12-28 16:08:07 +01:00
test_notification.go fix: pass OrgId to alertNotification model (#43678) 2022-01-05 10:19:45 +01:00
test_rule.go Add context for GetAlertNotificationUidQuery (#41633) 2021-11-12 14:35:38 +01:00
ticker_test.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
ticker.go AlertingNG: Create a scheduler to evaluate alert definitions (#29305) 2020-12-17 16:00:09 +02:00