1
0
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:
Mark Garrett
2014-09-29 11:04:41 -05:00
parent b3f039339d
commit e7647fd37d
2 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}