Skip to content

Commit

Permalink
chore: add dependency (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
minjun3021 authored Oct 1, 2023
1 parent ff28981 commit f601d97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dependencies {
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("io.github.kdprog:cxf-micrometer-metrics:1.0.0")
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.group4.ticketingservice.config

import io.micrometer.config.MicrometerFactoryBeanListener
import io.micrometer.core.instrument.MeterRegistry
import org.springframework.context.annotation.Bean

class CxfMicrometerConfig {

@Bean
fun cxfMicrometerBean(registry: MeterRegistry?): MicrometerFactoryBeanListener {
return MicrometerFactoryBeanListener(registry)
}
}

0 comments on commit f601d97

Please sign in to comment.