---
title: Configure transaction traces
source: https://docs.newrelic.com/docs/apm/transactions/transaction-traces/configure-transaction-traces
---

In APM, [transaction traces](https://docs.newrelic.com/docs/apm/transactions/transaction-traces/transaction-traces) record in-depth details about your application's transactions and database calls. You can edit the default settings for transaction traces.

## Configure transaction trace settings via agent [#agent-trace-config]

You can customize your transaction trace settings via New Relic agent configuration files and other "local" configuration methods such as environment variables. For more information about transaction trace configuration options, see the specific New Relic language agent's documentation:

-   [Go](https://docs.newrelic.com/docs/agents/go-agent/instrumentation/go-agent-configuration#transaction-tracer)
-   [Java](https://docs.newrelic.com/docs/agents/java-agent/configuration/java-agent-configuration-config-file#h2-transaction-tracer)
-   [.NET](https://docs.newrelic.com/docs/agents/net-agent/installation-configuration/net-agent-configuration#transaction_tracer)
-   [Node](https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration#tx_tracer_config)
-   [PHP](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-settings)
-   [Python](https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/python-agent-configuration#txn-tracer-settings)
-   [Ruby](https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration#transaction_tracer)

## Configure transaction traces using server-side configuration [#fields]

The ability to configure transaction traces using [server-side configuration](https://docs.newrelic.com/docs/agents/manage-apm-agents/configuration/server-side-agent-configuration) depends on the [New Relic agent](#agent-trace-config). If server-side configuration is not supported, the transaction trace settings will be visible in the UI but not editable.

If server-side configuration settings are available for your New Relic agent, you can see them at the following: **[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > APM & services > (select an app) > Settings > Application > Server-side agent configuration**.

Transaction trace settings available using server-side configuration will differ depending on the [New Relic agent](#agent-trace-config) you use. The UI includes descriptions of each. Settings in the UI may include:

-   Transaction tracing and threshold
-   Record SQL, including recording level and input fields
-   Log SQL and stack trace threshold
-   SQL query plans and threshold
-   Error collection, including HTTP code and error class
-   Slow query tracing
-   Thread profiler
-   Cross application tracing

## Configure traces for specific (key) transactions [#key-txns]

If you want to monitor or alert on a transaction differently than other transactions, make it a [key transaction](https://docs.newrelic.com/docs/apm/transactions/key-transactions/key-transactions-tracking-important-transactions-or-events). This is useful, for example, when you want to [set a transaction-specific Apdex](https://docs.newrelic.com/docs/apm/new-relic-apm/apdex/change-your-apdex-settings#key-transaction) that is different from your general [Apdex T threshold](https://docs.newrelic.com/docs/apm/new-relic-apm/apdex/apdex-measuring-user-satisfaction#what-is).

Changing a key transaction's Apdex changes the likelihood that it creates a transaction trace. For example:

-   If you want to make it more likely a key transaction would generate transaction traces, **lower** its Apdex T value.
-   If you want to make a key transaction less likely to be traced, **raise** its Apdex T value.

> #### ⚠️ IMPORTANT
>
> If you have the [transaction trace threshold](#fields) set to a number of seconds, and not to the default Apdex setting, the number-of-seconds threshold will act as the threshold for **all** transactions, even for key transactions that have custom Apdex settings.

## View logs for your APM and infrastructure data [#logs-context]

You can also bring your logs and application's data together to make troubleshooting easier and faster. With [logs in context](https://docs.newrelic.com/docs/logs/logs-context/configure-logs-context-apm-agents/), you can see log messages related to your errors and traces directly in your app's UI. You can also see logs in context of your [infrastructure data](https://docs.newrelic.com/docs/logs/forward-logs/forward-your-logs-using-infrastructure-agent/), such as Kubernetes clusters. No need to switch to another UI page.

## Create custom transactions [#custom-txns]

You can create custom transactions for app activity that isn't being automatically captured as a transaction by the New Relic agent. For more information, see [Custom instrumentation](https://docs.newrelic.com/docs/apm/agents/manage-apm-agents/agent-data/custom-instrumentation/).

## Collect HTTP request attributes, parameters [#config-attributes]

For [data security reasons](https://docs.newrelic.com/docs/apm/transactions/transaction-traces/security-options-transaction-traces), transaction traces do not collect potentially sensitive HTTP request attributes, sometimes called **parameters**. Traces do collect some basic HTTP request attributes, which New Relic calls **agent attributes**. To edit attribute collection settings, see the specific New Relic agent:

-   [Go](https://docs.newrelic.com/docs/agents/go-agent/instrumentation/go-agent-attributes)
-   [Java](https://docs.newrelic.com/docs/agents/java-agent/attributes/java-agent-attributes)
-   [.NET](https://docs.newrelic.com/docs/agents/net-agent/attributes/net-agent-attributes)
-   [Node.js](https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration#params) (does not allow HTTP attribute configuration)
-   [PHP](https://docs.newrelic.com/docs/agents/php-agent/attributes/php-agent-attributes)
-   [Python](https://docs.newrelic.com/docs/agents/python-agent/attributes/python-agent-attributes)
-   [Ruby](https://docs.newrelic.com/docs/agents/ruby-agent/attributes/ruby-agent-attributes)

For more information, see [Collect custom attributes](https://docs.newrelic.com/docs/agents/manage-apm-agents/agent-data/collect-custom-attributes).

## Delete a transaction trace [#delete-trace]

When you delete a transaction trace, it is deleted permanently.

**Delete all transaction traces**

To delete **all** traces for the selected app permanently:

1.  Go to **[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > APM & services > (select an app) > Monitor > Transactions**.
2.  Click **Delete all traces**.

    It may take fifteen minutes or more for all transaction trace records to disappear from the UI.

    To delete all traces for your account, contact us at [support.newrelic.com](https://support.newrelic.com).

    > #### 💡 TIP
    >
    > If you are doing general record cleanup, you may also want to delete [databases and slow query traces](https://docs.newrelic.com/docs/apm/applications-menu/monitoring/databases-slow-queries-page) or [error traces](https://docs.newrelic.com/docs/apm/applications-menu/events/viewing-apm-errors-error-traces). This will remove potentially sensitive data while retaining your other application data (such as Apdex, deployment information, etc.).
