Skip to content

Commit

Permalink
Update custom-instrumentation-attributes-net.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
newrelic707195 authored Jan 7, 2025
1 parent ccaa1db commit 7f37a34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +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 things like `Main()` since top-level methods like these won't end until the application ends, and data may not be sent to New Relic.
* 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.

Check failure on line 28 in src/content/docs/apm/agents/net-agent/custom-instrumentation/custom-instrumentation-attributes-net.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'don't' instead of 'do not'. Raw Output: {"message": "[Microsoft.Contractions] Use 'don't' instead of 'do not'.", "location": {"path": "src/content/docs/apm/agents/net-agent/custom-instrumentation/custom-instrumentation-attributes-net.mdx", "range": {"start": {"line": 28, "column": 76}}}, "severity": "ERROR"}

Check warning on line 28 in src/content/docs/apm/agents/net-agent/custom-instrumentation/custom-instrumentation-attributes-net.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Passive] 'being sent' looks like passive voice. Raw Output: {"message": "[Microsoft.Passive] 'being sent' looks like passive voice.", "location": {"path": "src/content/docs/apm/agents/net-agent/custom-instrumentation/custom-instrumentation-attributes-net.mdx", "range": {"start": {"line": 28, "column": 154}}}, "severity": "INFO"}

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

Expand Down

0 comments on commit 7f37a34

Please sign in to comment.