• /
  • EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

Introduction to transaction traces

In APM, a transaction trace gives a detailed snapshot of a single transaction in your application. A transaction trace records the available function calls, database calls, and external calls. You can use transaction traces to troubleshoot performance issues and to get detailed low-level insight into how your app is working.

What transactions record traces

In APM, a transaction trace records the segments that make up a transaction. Because they give you more detail, you can use transaction traces to analyze and troubleshoot performance issues.

Here are the default rules that govern which transactions a New Relic agent traces:

  • Over the minute-long harvest cycle, all transactions that breach the threshold (either four times your Apdex T value or a specific number of seconds) are added to a pool of transactions.
  • At the end of that minute, the New Relic agent selects the slowest transaction in that pool and performs a transaction trace on it.

These are the general rules, but there are some agent-specific differences. For example:

  • The Java agent collects occasional non-slow transactions.
  • If one transaction is frequently traced, some agents will select other transactions to give a more diverse sampling.

If you don't see traces in your account, it's possible that no transactions meet the necessary criteria. In this situation, you can adjust transaction trace settings to ensure some transactions will be traced.

If you use synthetic monitoring, you will likely have synthetic monitor traces. Synthetic traces can happen more frequently than APM traces, potentially several per minute.

Additionally, when your application has distributed tracing enabled, we will display transactions derived from distributed trace data. When viewing one of these transactions derived from a distributed trace, we display only the in-process spans that demonstrate the transaction in your service. To view the entire distributed trace across services, click "View distributed trace".

Configure transaction traces

To configure or edit trace settings, see the procedures for:

View transaction traces in UI

To view transaction traces:

  1. Go to one.newrelic.com > All capabilities > APM & Services. Select an app, then under the Monitor section, click Transactions.
  2. In the Transaction traces section, click a transaction trace to view additional details.

Examine logs for trace details

You can bring your logs and application's data together to make troubleshooting easier and faster. With logs in context, you can see log messages related to your errors and traces directly in your app's UI.

  1. From the Transactions page, click on a trace to go to the Trace details page.
  2. From the trace details page, click See logs.
  3. To view details related to an individual log message, click directly on the message.

You can also see logs in context of your infrastructure data, such as Kubernetes clusters. No need to switch to another UI page.

Troubleshoot an issue with transaction traces

If you expect to see transaction traces but do not see them, follow the troubleshooting procedures.

For more information about using transaction traces, slow queries, and service maps to solve performance issues, see Analyze performance issues.

Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.