Skip to content

Commit 148e84c

Browse files
authored
Merge pull request #12 from m3dev/feature/support-spring-boot-3_2
Support Spring Boot 3.2
2 parents e1024dd + 2782acc commit 148e84c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jvm/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ subprojects {
4747
val servletApiVersion by extra { "6.0.0" }
4848

4949
// Following versions are based on spring-boot
50-
val springBootVersion by extra { "3.0.0" }
50+
val springBootVersion by extra { "3.2.2" }
5151
val springVersion by extra { "6.0.0" }
5252
val apacheHttpClientVersion by extra { "4.5.8" }
5353
val okHttpClientVersion by extra { "4.8.0" }

jvm/spring-web/src/main/kotlin/com/m3/tracing/spring/http/client/M3TracingHttpRequestInterceptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class M3TracingHttpRequestInterceptor(
1717
override fun intercept(request: HttpRequest, body: ByteArray, execution: ClientHttpRequestExecution): ClientHttpResponse {
1818
return tracer.processOutgoingHttpRequest(wrapRequest(request)).use { span ->
1919
span["client"] = "RestTemplate"
20-
span["method"] = request.methodValue
20+
span["method"] = request.method.toString()
2121
span["uri"] = request.uri.toString()
2222
execution.execute(request, body).also { response ->
2323
span["status"] = response.rawStatusCode

jvm/spring-web/src/main/kotlin/com/m3/tracing/spring/http/client/SpringHttpRequestInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open class SpringHttpRequestInfo(protected val req: HttpRequest): HttpRequestInf
1010

1111
@Suppress("UNCHECKED_CAST", "IMPLICIT_ANY")
1212
override fun <T> tryGetMetadata(key: HttpRequestMetadataKey<T>): T? = when(key) {
13-
HttpRequestMetadataKey.Method -> req.methodValue as T?
13+
HttpRequestMetadataKey.Method -> req.method.toString() as T?
1414
HttpRequestMetadataKey.Host -> req.headers.host?.hostName as T?
1515
HttpRequestMetadataKey.ContentLength -> req.headers.contentLength.let { if (it <= 0) null else it } as T?
1616
HttpRequestMetadataKey.Path -> req.uri.path as T?

0 commit comments

Comments
 (0)