mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-09 02:48:41 +02: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);
|
$log->setMethod($method);
|
||||||
$metadata = array();
|
$metadata = array();
|
||||||
|
|
||||||
|
$multimeter = MultimeterControl::getInstance();
|
||||||
|
if ($multimeter) {
|
||||||
|
$multimeter->setEventContext('api.'.$method);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
list($metadata, $params) = $this->decodeConduitParams($request, $method);
|
list($metadata, $params) = $this->decodeConduitParams($request, $method);
|
||||||
|
|
Loading…
Add table
Reference in a new issue