mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Add prefixes to the context and extra record keys. Needed as some processors have the same keys as the the context. Specifically, the IntrospectionProcessor has "line" and "file" that can overwrite an error context "line" and "file".
This commit is contained in:
@@ -60,11 +60,11 @@ class NewRelicHandler extends AbstractProcessingHandler
|
||||
}
|
||||
|
||||
foreach ($record['context'] as $key => $parameter) {
|
||||
newrelic_add_custom_parameter($key, $parameter);
|
||||
newrelic_add_custom_parameter('context_' . $key, $parameter);
|
||||
}
|
||||
|
||||
foreach ($record['extra'] as $key => $parameter) {
|
||||
newrelic_add_custom_parameter($key, $parameter);
|
||||
newrelic_add_custom_parameter('extra_' . $key, $parameter);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user