-
Notifications
You must be signed in to change notification settings - Fork 0
[DR-3398] [ID-948] Upgrade to Spring Boot 3.1.6, TCL 0.1.9 #161
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
Changes from 8 commits
3bbac42
4902f6a
de7c1e4
65f9a84
8ad7cc0
d29569d
97d2e1a
a6e1806
d84c8b4
394ac69
ed2a6ac
ec14d6a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,14 +28,14 @@ apply from: 'analysis.gradle' | |
dependencies { | ||
implementation platform('com.google.cloud:libraries-bom:25.1.0') | ||
implementation 'com.google.cloud:google-cloud-pubsub:1.120.19' | ||
implementation 'com.google.cloud:google-cloud-kms:2.6.8' | ||
implementation 'com.google.cloud:google-cloud-pubsub:1.123.6' | ||
implementation 'com.google.cloud:google-cloud-kms:2.15.0' | ||
|
||
annotationProcessor 'org.immutables:value:2.9.0' | ||
implementation 'bio.terra:terra-common-lib:0.0.93-SNAPSHOT' | ||
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on | ||
implementation 'org.bouncycastle:bcprov-jdk15on:1.70' | ||
implementation 'org.codehaus.janino:janino:3.1.7' // Provides if/else xml parsing for logback config | ||
annotationProcessor 'org.immutables:value:2.9.2' | ||
implementation 'bio.terra:terra-common-lib:0.1.9-SNAPSHOT' | ||
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on | ||
implementation 'org.bouncycastle:bcprov-jdk18on:1.76' | ||
implementation 'org.codehaus.janino:janino:3.1.9' // Provides if/else xml parsing for logback config | ||
implementation('org.springframework.cloud:spring-cloud-gcp-starter-logging:1.2.8.RELEASE') { | ||
exclude group: 'org.springframework', module: 'spring-jcl' | ||
} | ||
okotsopoulos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -53,6 +53,18 @@ dependencies { | |
} | ||
// https://mvnrepository.com/artifact/org.mockito/mockito-core | ||
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0' | ||
|
||
// OpenTelemetry | ||
var openTelemetryVersion = '1.31.0' | ||
okotsopoulos marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After seeing this in different PRs I'm wondering if we should expose this dependency from tcl, with the idea that all terra services should be using tracing and opentelemetry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm glad you brought this up, I was wondering about this too. @dvoet , is there a reason why this block isn't handled by default in TCL? |
||
implementation "io.opentelemetry:opentelemetry-api:${openTelemetryVersion}" | ||
implementation "io.opentelemetry:opentelemetry-sdk:${openTelemetryVersion}" | ||
implementation "io.opentelemetry:opentelemetry-sdk-metrics:${openTelemetryVersion}" | ||
implementation "io.opentelemetry:opentelemetry-exporter-logging:${openTelemetryVersion}" | ||
implementation "io.opentelemetry.semconv:opentelemetry-semconv:1.21.0-alpha" | ||
implementation "io.opentelemetry.instrumentation:opentelemetry-spring-webmvc-6.0:${openTelemetryVersion}-alpha" | ||
implementation "io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:${openTelemetryVersion}" | ||
implementation "io.opentelemetry.instrumentation:opentelemetry-spring-boot:${openTelemetryVersion}-alpha" | ||
implementation "com.google.cloud.opentelemetry:exporter-trace:0.25.2" | ||
} | ||
|
||
sonarqube { | ||
|
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.
I didn't say this in the last review but it has been nagging me. It might be worth switching from
library = 'resttemplate'
above tolibrary = 'jersey2'
to be like other service. Then cross service tracing can be setup like this. Alternatively we could implement aClientHttpRequestInterceptor
that does tracing for this kind of client lib.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.
Good shout, I can play with this.
Do you have a sense of what changes would be required to the services interacting with the client library?
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.
I think I'd like to work on this separately in its own ticket, so will merge this PR in without it… I couldn't get it to work out of the box but I may be missing something simple.