• /
  • Log in
  • Free account

IgnoreTransaction (.NET agent API)

Syntax

NewRelic.Api.Agent.NewRelic.IgnoreTransaction()

Do not instrument the current transaction.

Requirements

Compatible with all agent versions.

Must be called inside a transaction.

Description

Ignores the current transaction.

Tip

You can also ignore transactions via a custom instrumentation XML file.

Examples

NewRelic.Api.Agent.NewRelic.IgnoreTransaction();

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.