grafana/pkg/infra/log
Sven Grossmann 7e01dde762
Logging: Add WithContextualAttributes to pass log params based on the given context (#74428)
* suggestion to use `RegisterContextualLogProvider`

* add `pluginId`

* change to `WithContextualAttributes`

* move approach to instrumentation.go

* improve `WithContextualAttributes`

* unexport consts

* typo

* remove comment

* add `nil` check
2023-09-07 13:13:34 +02:00
..
logtest Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
term Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
text Chore: Missed deprecations due to overly broad lint exclusion (#59732) 2022-12-14 12:32:45 +01:00
composite_logger_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
composite_logger.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
databaseCounter_test.go Instrumentation: log the total number of db queries per request (#54647) 2022-09-05 07:39:22 +02:00
databaseCounter.go Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
file_test.go Chore: Fix goimports grouping in pkg/infra (#62421) 2023-01-30 08:32:25 +00:00
file.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
handlers.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
interface.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
log_test.go Logging: Add WithContextualAttributes to pass log params based on the given context (#74428) 2023-09-07 13:13:34 +02:00
log.go Logging: Add WithContextualAttributes to pass log params based on the given context (#74428) 2023-09-07 13:13:34 +02:00
requestTiming.go Plugins: Add username to datasource plugin logging (#59893) 2022-12-07 13:15:42 +01:00
syslog_windows.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
syslog.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00