public interface IAgent
Provides access to Agent artifacts and methods, such as the currently executing transaction.
Agent version 8.9 or higher.
Compatible with all app types.
Provides access to agent artifacts and methods, such as the currently executing transaction. To obtain a reference to
Property providing access to the currently executing span via the ISpan interface.
IAgent agent = NewRelic.Api.Agent.NewRelic.GetAgent();ITransaction transaction = agent.CurrentTransaction;
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.