HttpTransaction

data class HttpTransaction(val request: Request, val response: Response, val duration: Duration, val labels: Map<String, String> = when { response is ResponseWithRoute -> mapOf(ROUTING_GROUP_LABEL to response.xUriTemplate.toString()) request is RequestWithRoute -> mapOf(ROUTING_GROUP_LABEL to request.xUriTemplate.toString()) else -> emptyMap() })

Constructors

Link copied to clipboard
constructor(request: Request, response: Response, duration: Duration, labels: Map<String, String> = when { response is ResponseWithRoute -> mapOf(ROUTING_GROUP_LABEL to response.xUriTemplate.toString()) request is RequestWithRoute -> mapOf(ROUTING_GROUP_LABEL to request.xUriTemplate.toString()) else -> emptyMap() })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun label(name: String): String?
fun label(name: String, value: String): HttpTransaction