generated from pricelees/issue-pr-template
[#26] 모니터링 환경 구성 #27
@ -47,8 +47,15 @@ dependencies {
|
||||
// Logging
|
||||
implementation("io.github.oshai:kotlin-logging-jvm:7.0.3")
|
||||
implementation("net.logstash.logback:logstash-logback-encoder:8.1")
|
||||
implementation("com.github.loki4j:loki-logback-appender:2.0.0")
|
||||
implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.1")
|
||||
|
||||
// Observability
|
||||
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
||||
implementation("io.micrometer:micrometer-tracing-bridge-otel")
|
||||
implementation("io.opentelemetry:opentelemetry-exporter-otlp")
|
||||
runtimeOnly("io.micrometer:micrometer-registry-prometheus")
|
||||
|
||||
// Kotlin
|
||||
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
||||
|
||||
@ -37,4 +37,9 @@ jdbc:
|
||||
log-level: DEBUG
|
||||
logger-name: query-logger
|
||||
multiline: true
|
||||
includes: connection,query,keys,fetch
|
||||
includes: connection,query,keys,fetch
|
||||
|
||||
management:
|
||||
tracing:
|
||||
sampling:
|
||||
probability: 1
|
||||
@ -1,3 +1,6 @@
|
||||
server:
|
||||
forward-headers-strategy: framework
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
active: ${ACTIVE_PROFILE:local}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
class="roomescape.common.log.RoomescapeLogMaskingConverter"/>
|
||||
|
||||
<property name="CONSOLE_LOG_PATTERN"
|
||||
value="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(%-5level) %green(${PID:- }) --- [%15.15thread] %cyan(%-40logger{36}) : %maskedMessage%n%throwable"/>
|
||||
value="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(%-5level) %green(${PID:- }) --- [%15.15thread] [%magenta(%X{traceId:-},%X{spanId:-})] %cyan(%-40logger{36}) : %maskedMessage%n%throwable"/>
|
||||
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user