b28085110d
Plugins: Auto instrumentation improvements ( #94193 )
2024-10-15 14:02:34 +02:00
b7a7f2bd62
Plugins: Use handler middleware from the SDK ( #93445 )
...
updates sdk to v0.251.0
2024-09-30 16:33:15 +02:00
c48caf0921
logging: log plugin request start ( #92925 )
...
log plugin request start
2024-09-10 13:25:50 +02:00
5ad7c47816
Plugin Instrumentation: Add target
property to request logs ( #91946 )
...
* Plugin Instrumentation: Add `target` property to request logs
* remove comment
* remove error
2024-09-02 17:41:26 +02:00
e60b0aef83
Plugins: Add support for ResourceConversion ( #91977 )
2024-08-15 16:02:21 -04:00
c8af659f02
Plugins: Enhanced plugin instrumentation ( #90199 )
...
* Plugins: Enhanced plugin instrumentation
* use backend.CallResourceResponseSenderFunc
* sdk v0.237.0
* support admission control
* cover all handlers in log and metrics middlewares
* fix after review
2024-07-09 15:03:46 +02:00
62d326cf04
Plugins: Add baseMiddleware support ( #87799 )
2024-05-14 16:27:40 +03:00
488bbaacab
Chore: Remove unused dependenices in plugin client middlewares ( #84624 )
...
* Chore: Remove unused dependenices in plugin client middlewares
* refactor logger middleware to remove cfg dependency
* hack to make tracing work in api group builders
2024-03-22 12:54:35 +01:00
68fe045ec7
Plugins: Remove pluginsInstrumentationStatusSource feature toggle ( #83067 )
...
* Plugins: Remove pluginsInstrumentationStatusSource feature toggle
* update tests
* Inline pluginRequestDurationWithLabels, pluginRequestCounterWithLabels, pluginRequestDurationSecondsWithLabels
2024-02-21 12:57:40 +01:00
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08:00
ab4fc07cc7
Plugins: Add statusSource to partial data response error log ( #78057 )
...
* Plugins: Add statusSource to partial data response error log
* Introduce DefaultStatusSource
* Add StatusSourceFromPluginErrorSource
* Moved StatusSourceFromPluginErrorSource
* Update pkg/services/pluginsintegration/clientmiddleware/logger_middleware.go
2023-11-14 16:27:48 +02:00
c7442c0fd2
Instrumentation: Check embedded errors in query data response for plugin metrics/logs status label ( #77613 )
...
Check embedded errors in query data response for plugin metrics/logs status label.
Plugin Request Completed log messages are now logged with info level if status=ok,
otherwise error level.
Fixes #76769
2023-11-10 16:55:01 +01:00
872386b427
Instrumentation: Log errors embedded within query data responses ( #76285 )
...
Fixes #76140
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2023-10-18 11:59:36 +02:00
c4fefd8da9
Plugins: Add status_source label to plugin request logs ( #76676 )
2023-10-17 11:09:01 +02:00
50504ba008
Plugins: Chore: Renamed instrumentation middleware to metrics middleware ( #76186 )
...
* Plugins: Chore: Renamed instrumentation middleware to metrics middleware
* Removed repeated logger attributes in middleware and contextual logger
* renamed loggerParams to logParams
* PR review suggestion
* Add contextual logger middleware
* Removed unused params from logRequest
* Removed unwanted changes
* Safer FromContext method
* Removed traceID from logParams
2023-10-11 12:42:32 +02:00
cfcfbe4aaa
Plugins: Refactoring: Implement plugin instrumentation as a middleware ( #76011 )
...
* Plugins: Refactor instrumentation as plugin client middleware
* Simplify repeated code
* Fix compilation error
* Add comments
* Moved status and endpoint consts to utils.go
* Fix wrong endpoint name in CheckHealth InstrumentationMiddleware
* Add tests
* Fix wrong endpoint value in instrumentPluginRequestSize
* removed todo
* PR review feedback: use MustRegister
* PR review feedback: move tracing middleware before instrumentation middleware
* PR review feedback: removed decommissioned check
* PR review feedback: extract prometheus metrics into separate variables
2023-10-09 14:12:57 +02:00
cc9a4aa203
Plugins: Logger middleware: Fix wrong endpoint name for CheckHealth ( #75873 )
...
Plugins: Logger middleware: fix wrong endpoint name for CheckHealth
2023-10-03 13:13:06 +03:00
f70990d8eb
Plugins: Refactor instrumentation to logger middleware ( #74726 )
2023-09-12 17:33:48 +02:00