Skip to content

Commit

Permalink
Merge pull request #19644 from neilpdx/patch-71
Browse files Browse the repository at this point in the history
Update custom-instrumentation-attributes-net.mdx
  • Loading branch information
newrelic707195 authored Jan 7, 2025
2 parents 7f5d305 + 7f37a34 commit 32abab5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Requirements include:
* You must be willing to modify your source code. If you can't or don't want to modify your source code, use [custom instrumentation via XML](/docs/agents/net-agent/custom-instrumentation/custom-instrumentation-xml-net).
* Your project must have a reference to `NewRelic.Api.Agent.dll` (for example, installing the package and placing `using NewRelic.Api.Agent;` in your code). This package is in the [NuGet gallery](https://www.nuget.org/packages/NewRelic.Agent.Api/).
* The `Transaction` and `Trace` attributes must be applied to concrete implementations of methods. They cannot be applied on interfaces or super class method definitions.
* Avoid instrumenting top-level methods such as `Main()`, as these methods do not conclude until the application terminates, which may prevent data from being sent to New Relic.

## Transactions called within transactions [#tx-vs-trace]

Expand Down

0 comments on commit 32abab5

Please sign in to comment.