Skip to content

Commit

Permalink
Install the OpenTracingClient feature onto the http client
Browse files Browse the repository at this point in the history
  • Loading branch information
fstien committed Nov 2, 2020
1 parent 48b13be commit 86505c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EarthquakeClient.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.fstien

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.zopa.ktor.opentracing.OpenTracingClient
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.apache.*
Expand All @@ -17,6 +18,8 @@ class EarthquakeClient {
install(JsonFeature) {
serializer = JacksonSerializer {}
}

install(OpenTracingClient)
}

private suspend fun getAll(): List<Earthquake> {
Expand Down

0 comments on commit 86505c0

Please sign in to comment.