Skip to content

Commit

Permalink
Added api monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
emardillu committed Apr 6, 2023
1 parent 5796d23 commit c97940f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ data class LogApiRequest(
val response_time: Long,
val duration: Long,
val response_code: Int,
val method: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ class LoggingClient {
response_time: Long,
duration: Long,
responseCode: Int,
method: String,
completionHandler: (Any?, Throwable?) -> Unit
) {
val requestBody = LogApiRequest(
route, request_time, response_time, duration, responseCode
route, request_time, response_time, duration, responseCode, method,
)
val call = apiService.logRequestTime(requestBody)

Expand Down

0 comments on commit c97940f

Please sign in to comment.