Skip to content

Commit

Permalink
Merge pull request #13276 from newrelic/hybrid-mobile-agent-releases
Browse files Browse the repository at this point in the history
feat(docs): New hybrid mobile agents (.NET MAUI, Xamarin)
  • Loading branch information
ally-sassman authored Jun 7, 2023
2 parents 1cdb269 + 0d1c380 commit 9a94ce3
Show file tree
Hide file tree
Showing 4 changed files with 1,099 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Monitor your Flutter application with our New Relic Flutter agent. Capture Dart

Ready to get started? Follow the steps below!

## Install the Flutter agent
## Install the Flutter agent [#install]
<Steps>

<Step>
### Review the requirements
### Review the requirements [#requirements]

Before you install the Flutter agent, make sure your Flutter app meets these version requirements:

Expand All @@ -46,7 +46,7 @@ For iOS-native apps:
</Step>

<Step>
### Add the Flutter agent to your project
### Add the Flutter agent to your project [#add-agent]

First, you'll need to add the Flutter agent into your dart project. In your `pubspec.yaml`, add the following to `dependencies`:

Expand All @@ -71,7 +71,7 @@ You'll add this application token in the next step.
</Step>

<Step>
### Configure your Flutter project
### Configure your Flutter project [#configure]

In your Flutter project, open `main.dart` and add the following code:

Expand Down Expand Up @@ -135,7 +135,7 @@ Make sure you pasted your application token(s) (copied from [Step 3](#app-token)
</Step>

<Step>
### (Android-only) Configure your Android app
### (Android-only) Configure your Android app [#configure-android]

If you have an Android-native app, you'll need make the following changes in your Android app:

Expand Down Expand Up @@ -174,7 +174,7 @@ And you're done! You should start seeing data in New Relic within 5 minutes.

</Steps>

## View your Flutter app data in New Relic
## View your Flutter app data in New Relic [#view-data]

Now that you've got the Flutter agent sending data to New Relic, it's time to view your app data in New Relic.

Expand All @@ -201,7 +201,7 @@ If no HTTP data appears after you wait at least five minutes, check you are not

</Callout>

## Query Flutter log data
## Query Flutter log data [#logs]

New Relic stores your Flutter logs as custom events. You can query these logs and build dashboards for them using this NRQL query:
```
Expand All @@ -210,9 +210,9 @@ New Relic stores your Flutter logs as custom events. You can query these logs an

For more information on NRQL queries, see [Introduction to NRQL](/docs/query-your-data/nrql-new-relic-query-language/get-started/introduction-nrql-new-relics-query-language/#where).

## (Optional) Customize the Flutter agent instrumentation
## (Optional) Customize the Flutter agent instrumentation [#customize-instrumentation]

Check out these optional API calls to further customize how New Relic collects and reports data:
Use the iOS or Android SDK APIs to create custom events and metrics. Here are some examples:

<CollapserGroup>
<Collapser
Expand Down Expand Up @@ -349,11 +349,6 @@ Add a name to `routes:` settings to help track each screen view/activity. Here's

</Collapser>

</CollapserGroup>

Use the iOS or Android SDK APIs to create custom events and metrics. Here are some examples:

<CollapserGroup>
<Collapser
className="freq-link"
id=""
Expand Down Expand Up @@ -544,4 +539,4 @@ Use the iOS or Android SDK APIs to create custom events and metrics. Here are so

</Collapser>

</CollapserGroup>
</CollapserGroup>
Loading

0 comments on commit 9a94ce3

Please sign in to comment.