diagnostic_events library

Classes

AsEventHandler<T extends DiagnosticEvent>
Adapter class to use an EventHandlerFunction as a DiagnosticEventHandler. Since this class inherits TypedEventHandler it can filter on event type.
ClientCallOpContext
The context of a client call operation. Subclasses represent web, method, and method streaming calls.
ConnectionInfo
Represents the connection information of a network request. Can be HTTP but also other types of network connections.
DiagnosticEvent
Base interface for all diagnostic events.
DiagnosticEventContext
Base class for information about the context in which a DiagnosticEvent was submitted.
DiagnosticEventHandler
Base interface for DiagnosticEvent handlers.
DiagnosticEventRecord<E extends DiagnosticEvent>
A record with a submitted diagnostic event.
ExceptionEvent
An event that represents an exception that occurred in the server.
ExceptionHandler
A DiagnosticEventHandler that handles ExceptionEvent instances.
FutureCallOpContext
The context of a future call operation.
MethodCallOpContext
The context of a method call operation.
OperationEventContext
Represents the operation that the event was caused by or in relation to. An operation is a client-originated call / operation or a scheduled operation, i.e. a method call, a streaming call, a web call, or a future call.
StreamOpContext
The context of a stream operation / message.
TypedEventHandler<T extends DiagnosticEvent>
A DiagnosticEventHandler that handles events of a specific type.
WebCallOpContext
The context of a web call operation.

Enums

OperationType
Represents the type of "operation" during which the event was caused.
OriginSpace
Denotes whether an event's origin is application (user) space or framework space.

Extensions

ConnectionInfoExtension on HttpConnectionInfo
Extension on HttpConnectionInfo that adds a toConnectionInfo converter method.

Typedefs

EventHandlerFunction<T extends DiagnosticEvent> = void Function(T event, {required DiagnosticEventContext context, required OriginSpace space})
Function signature type for functions that handle a DiagnosticEvent.