NewRelicAgentForXamarin 1.0.83
dotnet add package NewRelicAgentForXamarin --version 1.0.83
NuGet\Install-Package NewRelicAgentForXamarin -Version 1.0.83
<PackageReference Include="NewRelicAgentForXamarin" Version="1.0.83" />
paket add NewRelicAgentForXamarin --version 1.0.83
#r "nuget: NewRelicAgentForXamarin, 1.0.83"
// Install NewRelicAgentForXamarin as a Cake Addin #addin nuget:?package=NewRelicAgentForXamarin&version=1.0.83 // Install NewRelicAgentForXamarin as a Cake Tool #tool nuget:?package=NewRelicAgentForXamarin&version=1.0.83
New Relic Agent For Xamarin
New Relic Agent For Xamarin
Installation
The New Relic agent for Xamarin is available on a NuGet Package called NewRelicAgentForXamarin.
Licencia
MIT
To start Install the NuGet Package via Manage Nuget Packages under the Tools menu for Windows and under the Project menu on Mac.
XCFramework
for iOS using XCFramework
please download the latest version of the agent from (https://download.newrelic.com/ios_agent/), unzip the folder and then on Visual Studio right-clicking on the Xamarin.iOS folder select Add > Native Reference
and pick inside the agent unzipped folder the folder called NewRelic.xcframework
.
iOS:
Open AppDelegate.cs
and add the following to the top of the file:
using NewRelicXamarin;
Next, inside the class AppDelegate you need to add the following to the FinishedLaunching
function:
NewRelicXamarin.NewRelic.StartWithApplicationToken("new_relic_license_key");
Make sure you replace the new_relic_license_key
with your own. You can find your own license key by creating a Mobile app within the New Relic UI. Go to Mobile
> Add a new app
> Choose your platform > Give your App a name > Your license key is now visible lower down the page.
Android:
In the MainActivity class or equivalent
NewRelicXamarin.Android.NewRelic.WithApplicationToken("new_relic_license_key").Start(this);
Make sure you replace the new_relic_license_key
with your own.
Custom Events with Attributes
For sending Custom events we use the method RecordCustomEvent
included in the package, sending as parameters an event name and optionally we can send custom attributes:
iOS:
NewRelicXamarin.NewRelic.RecordCustomEvent(eventType, attributes);
Android:
NewRelicXamarin.Android.NewRelic.RecordCustomEvent(eventType, eventName, attributes);
BreadCrumbs
iOS:
On iOS the attributes parameter is nullable.
NewRelicXamarin.NewRelic.RecordCustomEvent(breadcrumbName, attributes);
Android:
On Android the second parameter is optional:
NewRelicXamarin.Android.NewRelic.RecordBreadcrumb(breadcrumbName, attributes);
Crash Report
To use the crash event trail:
Go to one.newrelic.com > Mobile > (select a mobile app) > Crash analysis.
On the lower right side of the Crash analysis page, select a crash type.
On the Crash details page, beside the stack trace, select Event trail.
Study the events leading up to a crash type for clues to the reasons for the crash.
To visualize the symbolicated stack trace on iOS it is required to upload the dSYM file.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- No dependencies.
-
MonoAndroid 1.0
- NewRelicXamarinAndroidDll (>= 1.0.9)
-
Xamarin.iOS 1.0
- NewRelicXamariniOSDll (>= 1.0.12)
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.0.83 | 3,317 | 6/28/2022 |
1.0.82 | 774 | 6/28/2022 |
1.0.81 | 713 | 6/28/2022 |
1.0.80 | 1,226 | 6/15/2022 |
1.0.79 | 1,388 | 6/15/2022 |
1.0.78 | 1,436 | 6/14/2022 |
1.0.77 | 1,227 | 6/14/2022 |
1.0.76 | 1,211 | 6/13/2022 |
1.0.75 | 1,182 | 6/13/2022 |
1.0.74 | 739 | 5/4/2022 |
1.0.72 | 738 | 5/3/2022 |
1.0.71 | 735 | 5/3/2022 |
1.0.66 | 752 | 5/3/2022 |
1.0.65 | 747 | 5/2/2022 |
1.0.63 | 737 | 5/2/2022 |
1.0.45 | 728 | 5/2/2022 |
1.0.18 | 1,390 | 4/6/2022 |
1.0.17 | 1,289 | 2/22/2022 |
1.0.16 | 1,502 | 2/17/2022 |
1.0.15 | 1,490 | 2/17/2022 |
1.0.14 | 1,312 | 2/17/2022 |
1.0.13 | 1,300 | 2/8/2022 |
1.0.11 | 1,249 | 2/8/2022 |
1.0.10 | 1,391 | 2/8/2022 |
1.0.9 | 1,414 | 2/8/2022 |
1.0.8 | 1,491 | 2/8/2022 |
1.0.6 | 1,546 | 2/7/2022 |
1.0.5 | 1,079 | 2/5/2022 |
1.0.1 | 1,089 | 2/3/2022 |
1.0.0 | 1,059 | 2/3/2022 |
NuGet Package use New Relic on a Xamarin Project.