From e35b182232de7de422afc0b4019380ff89b46f61 Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Mon, 5 Oct 2020 09:34:57 +0200 Subject: [PATCH] add clarifying note to README. fixes #3 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 33eeafe..a845e8d 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Leverage performance profiling with your browser tools with the [tracing crate]( ![Screenshot of performance reported using the `tracing-wasm` Subscriber](./2020-07-10-devtools-demo-screenshot.png) +Note: `tracing_wasm` uses the global JavaScript `console` and `performance` objects. It will not work in environments where one or both of these are not available, such as Node.js or Cloudflare Workers. + ## Usage For the simplest out of the box set-up, you can simply set `tracing_wasm` as your default tracing Subscriber in wasm_bindgen(start)