deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

Missing Parts of the Performance API? (specifically "clearResourceTimings")

Open Grunet opened this issue 3 years ago • 1 comments

I was trying to see if I could get OpenTelemetry's JS distribution (which currently only has Node and Browser support. Here's the issue for Deno) to work in Deno Deploy, and I noticed in the process that the following call to the Web Performance API was error-ing out.

I believe this is where the call was coming from in code.

performance.clearResourceTimings();

And this was the error I was seeing (from a reproduction case with only the above line in it

TypeError: performance.clearResourceTimings is not a function

This other issue led me to the docs for Deno Deploy's support for the Performance API, but all I could find there was a link to MDN.

Part of me is wondering if this was omitted intentionally (maybe relating to the Spectre concerns from this issue?), but I wasn't sure, so wanted to ask.

Grunet avatar Feb 06 '22 04:02 Grunet

Hi, @Grunet.

Thanks for opening the issue. We have to add the support in Deno before it's made available in Deploy. So I've opened an issue: https://github.com/denoland/deno/issues/13605.

satyarohith avatar Feb 06 '22 06:02 satyarohith