λ¬Έμ μ
νμ¬ @PerformanceTracker λ₯Ό λΆμ΄λ©΄ λΉμΌλ‘ λ±λ‘λλ ν΄λμ€λ€μ λ€μκ³Ό κ°λ€.
νμνμ§ μμλ°λ, λͺ¨λ @Component λ₯Ό λΆμ¬μ λΉμΌλ‘ λ±λ‘μ΄ λλ€.
β μ΄λ₯Ό @Conditional κ³Ό properties λ₯Ό μ΄μ©νμ¬ κ°μ ν΄λ³΄κ³ μ νλ€.
κ°μ λ°©μ
1.
accumulator, result mapper, object mapper λ performance tracker κΈ°λ₯μ κ°μ₯ κ·Όκ°μ΄ λλ ν΄λμ€λ‘ μΈμ λ λ±λ‘μ΄ λλλ‘ νλ€.
2.
web, query, rest λ λ§€λ² λΉμΌλ‘ λ±λ‘λ νμκ° μλ€.
a.
data jpa test λ₯Ό νλ€λ©΄ interceptor μ μ κ·Όνμ§ μμ μΈ‘μ μ μμ νμ§ μμ§λ§ web κ³Ό rest κ΄λ ¨ λΉλ€μ΄ λ±λ‘λλ€.
b.
μ΄μ λ°λΌ νμ¬ ν¨ν€μ§κ° web, query, rest λ‘ λλ μ ΈμκΈ°λλ¬Έμ @Conditional κ³Ό @ComponentScan μ μ΄μ©νμ¬ λΉμΌλ‘ λ±λ‘λ μ μλλ‘ νλ€.
3.
descriptor κ΄λ ¨ λΉμ @ConfigurationProperties, @ConditionalOnProperty, properties λ₯Ό ν΅ν΄ logging λλ json μΌλ‘ μ νμ μΌλ‘ λΉ λ±λ‘μ΄ λλ€.
4.
context manager
a.
κΈ°μ‘΄μλ context manager λ₯Ό λͺ¨λ λΉμΌλ‘ λ±λ‘νκ³ @PerformanceTracker μ μ΅μ
μΌλ‘ μ¬μ©μκ° context λ₯Ό μ νν μ μλλ‘ νμλ€.
b.
λͺ¨λ λ±λ‘ν νμκ° μκΈ°λ νκ³ class λ§λ€ context λ₯Ό λ°κΏ μꡬλ λλ¬Όλ€κ³ νλ¨νμ¬ context manager λν properties λ‘ μ νν μ μλλ‘ νλ€.
c.
Condition μ ꡬννμ¬ μ»€μ€ν
μ΄λ
Έν
μ΄μ
μ λ§λ€μ΄ μ νμ μΌλ‘ λΉ λ±λ‘ν μ μλλ‘ νλ€.
d.
λμ± μμΈν λ΄μ©μ μ΄ νμ΄μ§