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

[FR]: Performance: Allow adding custom attributes to built-in traces

Open th3kumar opened this issue 10 months ago • 4 comments

What feature would you like to see?

Firebase performance is tracking the number of built-in events, such as

  • App lifecycle (_app_start, _app_in_background, _app_in_foreground)
  • Network requests
  • Time spent on a screen

Currently, it is not possible to assign custom attributes to those traces. It would be great to allow this.

Firebase Product(s)

Performance

th3kumar avatar Feb 03 '25 17:02 th3kumar

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Feb 03 '25 17:02 google-oss-bot

Hi @th3kumar, thank you for reaching out and submitting a feature request. Firebase Performance offers customized monitoring for your app. You can instrument custom code traces to capture your app's performance in specific situations, like when you load a new screen or display a new interactive feature.

Is this something you were looking for?

lehcar09 avatar Feb 03 '25 18:02 lehcar09

Hey @lehcar09 , I want to add custom attributes to built-in Firebase Performance events like _app_start, network traces, and _app_in_background. Currently, this isn’t possible. Can this feature be supported?

th3kumar avatar Feb 04 '25 03:02 th3kumar

Thank you for clarification @th3kumar. Currently, you can only create custom attributes on your custom code traces.

I've marked this as a feature request. While we are unable to promise any timeline for this, we'll definitely keep this under our radar.

P.S. For folks who find this useful, adding an emoji thumbs up on the original post can help us prioritize adding this to the roadmap.

lehcar09 avatar Feb 04 '25 13:02 lehcar09