Search code examples
androidfirebasefirebase-performance

Custom Firebase Performance Monitoring


I am working on an Android studio project and have integrated "Firebase Performance Monitoring". I have tracked the api from the user and got the results. How can I add additional properties to filter results in statistics like this: enter image description here


Solution

  • Firebase performance has "Custom Attributes" precisely for this reason. It allows you to add attributes to all the traces that can enable you to slice and dice the data like you mentioned.

    There are some attributes that are automatically added to every trace (No code required): https://firebase.google.com/docs/perf-mon#attributes

    For your custom use cases, you can add custom attributes as needed. APIs are available at https://firebase.google.com/docs/perf-mon/custom-attributes

    Unfortunately, custom attributes are not available on Out of the box collected metrics.