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()
})