summaryrefslogtreecommitdiff
path: root/runtime/ops/mod.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-02-21 19:20:31 +0100
committerGitHub <noreply@github.com>2021-02-21 19:20:31 +0100
commit9d70ea2e9f03d7c12407f117cf11d2a99d55c8f8 (patch)
treeaf9699876b632ac452d0cd6214647cb3598eaec6 /runtime/ops/mod.rs
parentaf93256d05993b53debe0552828b6ae7df521750 (diff)
feat(unstable): per op metrics (#9240)
Diffstat (limited to 'runtime/ops/mod.rs')
-rw-r--r--runtime/ops/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/mod.rs b/runtime/ops/mod.rs
index 3ead7efa2..e5dba723a 100644
--- a/runtime/ops/mod.rs
+++ b/runtime/ops/mod.rs
@@ -48,7 +48,7 @@ pub fn reg_json_async<F, V, R, RV>(
R: Future<Output = Result<RV, AnyError>> + 'static,
RV: Serialize,
{
- rt.register_op(name, metrics_op(json_op_async(op_fn)));
+ rt.register_op(name, metrics_op(name, json_op_async(op_fn)));
}
pub fn reg_json_sync<F, V, R>(rt: &mut JsRuntime, name: &'static str, op_fn: F)
@@ -57,7 +57,7 @@ where
V: DeserializeOwned,
R: Serialize,
{
- rt.register_op(name, metrics_op(json_op_sync(op_fn)));
+ rt.register_op(name, metrics_op(name, json_op_sync(op_fn)));
}
/// `UnstableChecker` is a struct so it can be placed inside `GothamState`;