mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Provide an "api" context to Multimeter for API events
Summary: Ref T6930. This gives us a better context for API calls -- "api.call.name" instead of always "web.ConduitAPIController". Test Plan: {F391658} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T6930 Differential Revision: https://secure.phabricator.com/D12677
This commit is contained in:
parent
77250cd54c
commit
ba6b1376f2
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ final class PhabricatorConduitAPIController
|
|||
$log->setMethod($method);
|
||||
$metadata = array();
|
||||
|
||||
$multimeter = MultimeterControl::getInstance();
|
||||
if ($multimeter) {
|
||||
$multimeter->setEventContext('api.'.$method);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
list($metadata, $params) = $this->decodeConduitParams($request, $method);
|
||||
|
|
Loading…
Reference in a new issue