firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

FR: Firebase Performance Web - Add config to disable global performance api hooks

Open statop opened this issue 2 years ago • 4 comments

Operating System

web

Browser Version

all

Firebase SDK Version

0.6.4

Firebase SDK Product:

Performance

Describe your project's tooling

Angular app with angular cli and @angular/fire

Describe the problem

We have many usages of the web performance api to measure timings outside of firebase.

This results in quite a bit of extra data and noise getting sent to firebase.

It would be cool to have a config that turned off the automatic logging of all web performance api usages.

Steps and code to reproduce issue

Use the web performance api for anything. Note that all it's data is sent to firebase.

We would like to disable the automatic logging of all web performance api usages.

statop avatar Aug 08 '23 14:08 statop

Hi @statop, thanks for reaching out to us. Does our documentation: Disable Firebase Performance Monitoring cover the feature you are asking?

jbalidiong avatar Aug 10 '23 14:08 jbalidiong

Hi @statop, thanks for reaching out to us. Does our documentation: Disable Firebase Performance Monitoring cover the feature you are asking?

No, that disables everything and/or the automatic metrics like first paint. We want those.

We just want to disable firebase performance hooking into the window.performance api and logging all usages of window.performance.measure. That hook is basically sending all usages of window.performance to firebase. That generates a tremendous amount of noise. We use that api all over the place to measure other things.

We like the automatic network metrics and things like first paint, but the logging of all regular window.performance.measure usage needs to be able to be disabled.

Basically something to disable the code in setupUserTimingTraces()

statop avatar Aug 10 '23 15:08 statop

Thanks for the clarification. I'll get this routed to the right team(s) for consideration.

I'll also leave this feature request open, so our engineers and other members of the community can share their thoughts about this matter.

jbalidiong avatar Aug 11 '23 11:08 jbalidiong

any update on this? there is just too much noise, an option like this would be huge. any chance of it being implemented? thx

johnwest80 avatar Sep 30 '25 20:09 johnwest80