Wigilabs.NewRelic.UWP.Agent 1.1.0-alpha.3

This is a prerelease version of Wigilabs.NewRelic.UWP.Agent.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Wigilabs.NewRelic.UWP.Agent --version 1.1.0-alpha.3
NuGet\Install-Package Wigilabs.NewRelic.UWP.Agent -Version 1.1.0-alpha.3
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="Wigilabs.NewRelic.UWP.Agent" Version="1.1.0-alpha.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wigilabs.NewRelic.UWP.Agent --version 1.1.0-alpha.3
#r "nuget: Wigilabs.NewRelic.UWP.Agent, 1.1.0-alpha.3"
#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.
// Install Wigilabs.NewRelic.UWP.Agent as a Cake Addin
#addin nuget:?package=Wigilabs.NewRelic.UWP.Agent&version=1.1.0-alpha.3&prerelease

// Install Wigilabs.NewRelic.UWP.Agent as a Cake Tool
#tool nuget:?package=Wigilabs.NewRelic.UWP.Agent&version=1.1.0-alpha.3&prerelease

New Relic Mobile UWP Agent

New Relic agent installation

  1. open the project within visual studio
  2. go to option Project>administration of NuGet package
  3. Search for Wigilabs.NewRelic.UWP.Agent package, note: check include prerelease
  4. 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 value AgentLog.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 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. 
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
1.1.0 366 5/21/2021
1.1.0-alpha.3 294 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

- library metrolog was removed