Disable record_metrics_slice in grafana macro on wasm
* Disable record_metrics_slice in grafana macro on wasm
* Update client/grafana-data-source/src/lib.rs
* Revert "Update client/grafana-data-source/src/lib.rs"
This reverts commit
@@ -47,9 +47,13 @@ lazy_static! {
#[macro_export]
macro_rules! record_metrics(
($($key:expr => $value:expr,)*) => {
+ if cfg!(not(target_os = "unknown")) {
$crate::record_metrics_slice(&[
$( ($key, $value as f32), )*
- ]);
+ ])
+ } else {
+ Ok(())
+ }
}
);
