Last updated May 9, 2022

Rate this page:

Monitor your apps

Monitor app performance across sites and debug your apps using app metrics and logs in the developer console.

View app metrics

App metrics show you how your app is currently performing across all sites.

To view app metrics:

  1. Access the developer console.
  2. Select the Forge app that you want to view metrics for.
  3. Select Metrics in the left menu.

Metrics screen

Metrics

The following metrics are available for all function invocations. Note, this doesn’t include code executing in a Custom UI iframe, but includes functions invoked by @forge/bridge.

  • Invocation success rate: The percentage of successful vs. failed function invocations, grouped across all functions. An invocation is considered successful if the function doesn’t fail with a function error.
  • Invocation count: The total number of invocations, regardless of success or failure.
  • Function errors: The number of functions that failed with an error. They are grouped by:
    • Out of memory: The function has exhausted the available memory.
    • Timeout: The function has not been successful within a time limit.
    • Unhandled exception: The function threw an uncaught exception. This category may include exceeding other platform limits such as network requests. To learn more about why the exception was thrown, view your app logs by selecting Logs in the left hand menu. For more information, see View app logs and installations.

Note that the metrics may not always be accurate because undelivered metrics data isn’t back-filled and data sampling might be used for some metrics.

Filters

Use these filters to refine your metrics:

  • All sites: Narrows down the metrics based on the sites that your Forge app is installed onto, for example, your-domain.atlassian.net. Note, only sites with at least one invocation in the last 14 days will be listed.

    • By default, metrics will be displayed from all sites that your Forge app is installed on.
    • Sites filter allows for multi-select.
  • Environment: Narrows down the metrics for a specific app environment for your Forge app.

  • Date: Narrows down the metrics based on your chosen time interval.

    • Choose from a range of predefined values, such as the Last 24 hours, or choose a more specific time interval using the Custom option.

    • Note, metrics are only available for the past 14 days and all dates are in UTC.

You can bookmark the URL on your browser to access metrics based on specific filtering criteria for quick access.

You must use data in accordance with the privacy rights that you've obtained from your user. For more information, see the Atlassian Developer Terms and Forge Terms.

View app logs and installations

App logs give you the information you need in order to debug your apps. To view production logs for your app in the developer console, you need your users to enable continuous access to their logs.

To view app logs:

  1. Access the developer console.
  2. In the left menu, select Logs.

You'll see a page like this, showing logs for all sites that users have granted you continuous access to.

A list of logs and the associated filters

Log table

The table contains a list of your logs.

  • Date/Time(UTC): Displays the time that the log was created in UTC.

  • Details: Shows a concatenated preview of the log message. Select anywhere in a row to expand it and view the entire log message, along with all of the attributes from the state of the app, such as Invocation ID and Product.

  • Level: Displays the log level. This can be chosen by your app, by inserting log statements such as console.log, console.warn in your app’s code. Unhandled errors are assigned the Error level.

Logs are shown for a single invocation. To see logs for another invocation, select Load logs for another invocation.

Filters

Use these filters to refine your logs:

  • Site: Narrows down the logs based on the site that your app is installed onto, for example https://your-domain.atlassian.net.

    • Note, you can’t filter by product. For example, you can’t narrow down logs just for Jira instances on a particular site.
  • Environment: Narrows down the logs for a specific app environment for your Forge app.

  • Date: Narrows down the logs based on your chosen time interval.

    • Choose from a range of predefined values, such as the Last 24 hours, or choose a more specific time interval using the Custom option.

    • Note, logs are only available for the past 60 days and all dates are in UTC.

To download a zipped file of the logs for your chosen filters, select the Download button.

Limitations

The monitoring functionality in the developer console is an evolving feature. We're exploring ways to improve the monitoring capabilities and overcome the following limitations:

  • When filtering by multiple sites, data is aggregated from all selected sites, rather than individual sites.
  • Log filters don't allow for multi-select.
  • Log filters don't include filtering by log level (warn or info).

Rate this page: