Wigilabs.NewRelic.UWP.Agent
1.1.0
dotnet add package Wigilabs.NewRelic.UWP.Agent --version 1.1.0
NuGet\Install-Package Wigilabs.NewRelic.UWP.Agent -Version 1.1.0
<PackageReference Include="Wigilabs.NewRelic.UWP.Agent" Version="1.1.0" />
paket add Wigilabs.NewRelic.UWP.Agent --version 1.1.0
#r "nuget: Wigilabs.NewRelic.UWP.Agent, 1.1.0"
// Install Wigilabs.NewRelic.UWP.Agent as a Cake Addin
#addin nuget:?package=Wigilabs.NewRelic.UWP.Agent&version=1.1.0
// Install Wigilabs.NewRelic.UWP.Agent as a Cake Tool
#tool nuget:?package=Wigilabs.NewRelic.UWP.Agent&version=1.1.0
New Relic Mobile UWP Agent
New Relic agent installation
- open the project within visual studio
- go to option
Project
>administration of NuGet package
- Search for
Wigilabs.NewRelic.UWP.Agent
package. - in the application
App.xaml.cs
archive, we will initiate the agent with the token that was provided by new relic
// add this line with your nr token in App.xaml.cs -> app() method
Agent.withApplicationToken("token-NRMA").withLogLevel(AgentLog.AUDIT).start(this);
New Relic agent configuration and feature flags
New Relic Mobile's UWP agent provides configuration settings to change the default behavior of the agent.
Crash and error reporting settings
- withCrashReportingEnabled:
Default value is true
Agent.withApplicationToken("token-NRMA").withCrashReportingEnabled(true or false) .start(this);
Logging settings
withLogLevel:
Specifies the log level. Default valueAgentLog.INFO
.
Options include:- AgentLog.AUDIT (most verbose) - AgentLog.DEBUG - AgentLog.INFO (default) - AgentLog.WARNING - AgentLog.ERROR (least verbose)
Agent.withApplicationToken("token-NRMA").withLogLevel(AgentLog.INFO).start(this);
- withLoggingEnabled:
Enable or disable agent logging. Default value is 'true'
Agent.withApplicationToken("token-NRMA").withLoggingEnabled(false).start(this);
New Relic agent Options
noticeNetworkFailure
Records network failures.
Agent.noticeNetworkFailure(string url, string httpMethod, long startTime, long endTime, exception exception OR enum networkFailure)
noticeHttpTransaction
Tracks networks requests.
Agent.noticeHttpTransaction(string url, string httpMethod, int statusCode, long startTime, long endTime, long bytesSent, long bytesReceived [, string responseBody])
recordCustomEvent
Records a custom New Relic Mobile event.
Agent.recordCustomEvent(string eventType, [string eventName,] Dictionary<string, object> eventAttributes)
setAttribute
Creates a session-level attribute shared by multiple Mobile event types.
Agent.setAttribute(string name, string or float value)
setMaxEventBufferTime
Sets the event harvest cycle length.
Agent.setMaxEventBufferTime(int maxBufferTimeInSec)
setMaxEventBufferSize
Sets the maximum size of the event pool.
Agent.setMaxEventBufferSize(int maxSize)
crashNow
Throws a demo run-time exception named java.lang.RuntimeException to test New Relic crash reporting.
Agent.crashNow()
Agent.crashNow(string message)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.3)
- SharpZipLib (>= 1.3.1)
- System.Json (>= 4.7.1)
- System.Runtime.InteropServices.WindowsRuntime (>= 4.3.0)
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 |
---|---|---|
1.1.0 | 368 | 5/21/2021 |
1.1.0-alpha.3 | 295 | 4/12/2021 |
1.1.0-alpha.2 | 138 | 3/31/2021 |
1.1.0-alpha.1 | 176 | 3/10/2021 |
1.1.0-alpha | 201 | 2/11/2021 |
1.0.0-alpha.4 | 143 | 1/26/2021 |
1.0.0-alpha.3 | 176 | 12/10/2020 |
1.0.0-alpha.2 | 220 | 11/26/2020 |
1.0.0-alpha.1 | 285 | 11/20/2020 |
1.0.0-alpha | 345 | 11/20/2020 |