Skip to content

Commit

Permalink
feat: send metrics to zipkin
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jul 14, 2024
1 parent 49aa5ac commit d14c218
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api-gateway/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ dependencies {
testImplementation("io.projectreactor:reactor-test")
testImplementation("org.springframework.security:spring-security-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// https://mvnrepository.com/artifact/io.micrometer/micrometer-tracing-bridge-otel
implementation("io.micrometer:micrometer-tracing-bridge-otel:1.3.2")
// https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-zipkin
implementation("io.opentelemetry:opentelemetry-exporter-zipkin:1.40.0")


val jjwtVersion = "0.12.5"
implementation("io.jsonwebtoken:jjwt-api:$jjwtVersion")
Expand Down
8 changes: 8 additions & 0 deletions api-gateway/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ springdoc:
name: "사진 서비스"
url: https://gateway.mafoo.kr/photo/v3/api-docs

management:
tracing:
sampling:
probability: 1.0
zipkin:
tracing:
endpoint: http://zipkin/api/v2/spans

app:
jwt:
verify-key: ${JWT_VERIFY_KEY}

0 comments on commit d14c218

Please sign in to comment.