Soenneker.Maui.Firebase.Performance 4.0.235

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Maui.Firebase.Performance --version 4.0.235
                    
NuGet\Install-Package Soenneker.Maui.Firebase.Performance -Version 4.0.235
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Maui.Firebase.Performance" Version="4.0.235" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maui.Firebase.Performance" Version="4.0.235" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Maui.Firebase.Performance" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Maui.Firebase.Performance --version 4.0.235
                    
#r "nuget: Soenneker.Maui.Firebase.Performance, 4.0.235"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Maui.Firebase.Performance@4.0.235
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Maui.Firebase.Performance&version=4.0.235
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Maui.Firebase.Performance&version=4.0.235
                    
Install as a Cake Tool

Soenneker.Maui.Firebase.Performance

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Provides Android and iOS services for custom Firebase Performance Monitoring traces in a .NET MAUI app.

Installation

dotnet add package Soenneker.Maui.Firebase.Performance

Configure the native Firebase app first, including the platform's google-services.json or GoogleService-Info.plist.

Registration

Enable collection through the Firebase builder and register the trace service:

using Soenneker.Maui.Firebase.Dtos;
using Soenneker.Maui.Firebase.Performance.Registrars;
using Soenneker.Maui.Firebase.Registrars;

builder.UseFirebase(new FirebaseConfig())
       .EnableFirebasePerformance(collectionEnabled: userAllowsPerformanceMonitoring)
       .Build();

builder.Services.AddFirebasePerformanceServiceAsSingleton();

The service is registered only for Android and iOS targets. Collection can also be changed later with SetPerformanceMonitoringEnabled.

Measure an operation

Measure always stops and disposes its trace, including when the operation fails:

await performance.Measure("load_catalog", async () =>
{
    await catalog.Load();
});

Manage a trace

Dispose manually-created traces. Disposal stops the trace and releases its native handle:

using IFirebasePerformanceTrace trace = performance.StartTrace("sync_orders");

trace.SetAttribute("source", "background");
trace.LogMetric("orders", orderCount);

await orders.Sync();

Import Soenneker.Maui.Firebase.Performance.Abstract for the service and trace interfaces.

LogMetric(name, value) on the service creates a short-lived trace with the same trace and metric name. Use StartTrace when multiple metrics or attributes belong to one operation. Trace names, metric names, values, and attributes remain subject to Firebase's naming and quota limits.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.239 71 9/8/2026
4.0.238 82 9/8/2026
4.0.237 100 9/4/2026
4.0.236 94 9/3/2026
4.0.235 94 9/1/2026
4.0.234 88 9/1/2026
4.0.233 94 8/30/2026
4.0.232 91 8/30/2026
4.0.231 89 8/29/2026
4.0.230 91 8/29/2026
4.0.229 95 8/29/2026
4.0.228 92 8/29/2026
4.0.227 97 8/25/2026
4.0.225 95 8/20/2026
4.0.224 98 8/20/2026
4.0.223 107 7/29/2026
4.0.222 107 7/29/2026
4.0.221 98 7/29/2026
4.0.220 119 7/28/2026
4.0.219 110 7/27/2026
Loading failed

Update dependency Soenneker.Maui.Firebase to 4.0.193 (#739)