Use Agent.Subscribe() to register diagnostic subscribers that automatically capture outgoing HTTP calls as spans within your transactions.

Required Imports

HttpDiagnosticsSubscriber

Use HttpDiagnosticsSubscriber to automatically capture all outgoing HTTP requests made via HttpClient as spans. Each HTTP call will appear as a span under the active transaction.

Syntax

Example

See also