diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-02-21 19:20:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 19:20:31 +0100 |
commit | 9d70ea2e9f03d7c12407f117cf11d2a99d55c8f8 (patch) | |
tree | af9699876b632ac452d0cd6214647cb3598eaec6 /cli/ops/mod.rs | |
parent | af93256d05993b53debe0552828b6ae7df521750 (diff) |
feat(unstable): per op metrics (#9240)
Diffstat (limited to 'cli/ops/mod.rs')
-rw-r--r-- | cli/ops/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index c46c5cd20..e47722198 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -21,7 +21,7 @@ where F: Fn(Rc<RefCell<OpState>>, Value, BufVec) -> R + 'static, R: Future<Output = Result<Value, AnyError>> + 'static, { - 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>(rt: &mut JsRuntime, name: &'static str, op_fn: F) @@ -29,5 +29,5 @@ where F: Fn(&mut OpState, Value, &mut [ZeroCopyBuf]) -> Result<Value, AnyError> + 'static, { - rt.register_op(name, metrics_op(json_op_sync(op_fn))); + rt.register_op(name, metrics_op(name, json_op_sync(op_fn))); } |