Search in sources :

Example 1 with User

use of com.google.firebase.example.perf.kotlin.model.User in project snippets-android by firebase.

the class MainActivity method piiExamples.

public void piiExamples() {
    Trace trace = FirebasePerformance.getInstance().newTrace("trace");
    User user = new User();
    // [START perf_attr_no_pii]
    trace.putAttribute("experiment", "A");
    // [END perf_attr_no_pii]
    // [START perf_attr_pii]
    trace.putAttribute("email", user.getEmailAddress());
// [END perf_attr_pii]
}
Also used : Trace(com.google.firebase.perf.metrics.Trace) AddTrace(com.google.firebase.perf.metrics.AddTrace) User(com.google.firebase.example.perf.kotlin.model.User)

Aggregations

User (com.google.firebase.example.perf.kotlin.model.User)1 AddTrace (com.google.firebase.perf.metrics.AddTrace)1 Trace (com.google.firebase.perf.metrics.Trace)1