Interface IKestrelTelemetryConsumer
A consumer of Microsoft-AspNetCore-Server-Kestrel EventSource events.
Namespace: Yarp.Telemetry.Consumption
Assembly: Yarp.Telemetry.Consumption.dll
Syntax
public interface IKestrelTelemetryConsumer
Methods
| Improve this Doc View SourceOnConnectionStart(DateTime, String, Nullable<String>, Nullable<String>)
Called at the start of a connection.
Declaration
virtual void OnConnectionStart(DateTime timestamp, string connectionId, string? localEndPoint, string? remoteEndPoint)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
System.String | connectionId | ID of the connection. |
System.Nullable<System.String> | localEndPoint | Local endpoint for the connection. |
System.Nullable<System.String> | remoteEndPoint | Remote endpoint for the connection. |
OnConnectionStop(DateTime, String)
Called at the end of a connection.
Declaration
virtual void OnConnectionStop(DateTime timestamp, string connectionId)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
System.String | connectionId | ID of the connection. |
OnRequestStart(DateTime, String, String, String, String, String)
Called at the start of a request.
Declaration
virtual void OnRequestStart(DateTime timestamp, string connectionId, string requestId, string httpVersion, string path, string method)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
System.String | connectionId | ID of the connection. |
System.String | requestId | ID of the request. |
System.String | httpVersion | HTTP version of the request. |
System.String | path | Path of the request. |
System.String | method | HTTP method of the request. |
OnRequestStop(DateTime, String, String, String, String, String)
Called at the end of a request.
Declaration
virtual void OnRequestStop(DateTime timestamp, string connectionId, string requestId, string httpVersion, string path, string method)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
System.String | connectionId | ID of the connection. |
System.String | requestId | ID of the request. |
System.String | httpVersion | HTTP version of the request. |
System.String | path | Path of the request. |
System.String | method | HTTP method of the request. |