IHttpTelemetryConsumer Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A consumer of System.Net.Http EventSource events.
public interface IHttpTelemetryConsumer
type IHttpTelemetryConsumer = interface
Public Interface IHttpTelemetryConsumer
Methods
| OnConnectionClosed(DateTime, Int32, Int32, Int64) |
Called when a new HTTP connection is closed. |
| OnConnectionClosed(DateTime, Int32, Int32) |
Called when a new HTTP connection is closed. |
| OnConnectionEstablished(DateTime, Int32, Int32, Int64, String, String, Int32, String) |
Called when a new HTTP connection is established. |
| OnConnectionEstablished(DateTime, Int32, Int32) |
Called when a new HTTP connection is established. |
| OnRedirect(DateTime, String) |
Called before a request is redirected if AllowAutoRedirect is enabled. |
| OnRequestContentStart(DateTime) |
Called before sending the request content. |
| OnRequestContentStop(DateTime, Int64) |
Called after sending the request content. |
| OnRequestFailed(DateTime, String) |
Called before OnRequestStop(DateTime) if the request failed. |
| OnRequestFailed(DateTime) |
Called before OnRequestStop(DateTime) if the request failed. |
| OnRequestHeadersStart(DateTime, Int64) |
Called before sending the request headers. |
| OnRequestHeadersStart(DateTime) |
Called before sending the request headers. |
| OnRequestHeadersStop(DateTime) |
Called after sending the request headers. |
| OnRequestLeftQueue(DateTime, TimeSpan, Int32, Int32) |
Called when a request that hit the MaxConnectionsPerServer or MAX_CONCURRENT_STREAMS limit leaves the queue. |
| OnRequestStart(DateTime, String, String, Int32, String, Int32, Int32, HttpVersionPolicy) |
Called before an HTTP request. |
| OnRequestStop(DateTime, Int32) |
Called after an HTTP request. |
| OnRequestStop(DateTime) |
Called after an HTTP request. |
| OnResponseContentStart(DateTime) |
Called when HttpClient starts buffering the response content. This event WILL NOT be called for requests made by YARP, as they are not buffered. |
| OnResponseContentStop(DateTime) |
Called when HttpClient stops buffering the response content. This event WILL NOT be called for requests made by YARP, as they are not buffered. |
| OnResponseHeadersStart(DateTime) |
Called before reading the response headers. |
| OnResponseHeadersStop(DateTime, Int32) |
Called after reading all response headers. |
| OnResponseHeadersStop(DateTime) |
Called after reading all response headers. |