-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: metrics (prometheus + micrometer) #110
Conversation
59c33ee
to
937845f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remover @Bean
do MainExceptionController
, transformar o mesmo em um @Component
e mudar o construtor para o seguinte:
public MainExceptionController(
@Value("${log.channel.id:#{null}}") String channelId,
@Value("${log_directory:#{null}}") String logDirectory
) {
this.channelId = channelId;
this.logDirectory = logDirectory == null ? null : Path.of(logDirectory);
}
Estava retornando um erro quando os valores não eram informados e o @Bean
retornava null.
build.gradle
Outdated
implementation("com.github.Softawii:curupira:v1.0.0") { | ||
changing = true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation("com.github.Softawii:curupira:v1.0.0") { | |
changing = true | |
} | |
implementation("com.github.Softawii:curupira:v1.0.0") { | |
exclude module: 'slf4j-simple' | |
changing = true | |
} | |
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.24.1' |
Adicionar essas instruções para melhorar a integração com o SLF4J do Curupira
Atualizar gradle: ./gradlew wrapper --gradle-version latest |
19fb183
to
43adf42
Compare
No description provided.