Skip to content

Commit

Permalink
Forgot the URI mapper causing URIs to not be recorded in okhttp metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Apr 16, 2024
1 parent 1639e57 commit 0d6339b
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -35,6 +35,8 @@ class BeanConfig {
@Bean
fun httpClient(registry: ObservationRegistry): OkHttpClient {
val interceptor = OkHttpObservationInterceptor.builder(registry, "okhttp.requests")
// This can lead to tag cardinality explosion as it doesn't use uri patterns, should investigate options for that one day
.uriMapper { it.url.encodedPath }
.build()

return OkHttpClient.Builder()
Expand Down

0 comments on commit 0d6339b

Please sign in to comment.