Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit b57fb5a

Browse files
committed
Merge pull request #1663 from Dam14n
* Adding-missing-hint-sleuth: Add hint for Sleuth R2dbcTransactionManager instrumentation Closes gh-1663
2 parents 42738de + 1929ed7 commit b57fb5a

File tree

1 file changed

+3
-0
lines changed
  • spring-native-configuration/src/main/java/org/springframework/cloud/sleuth

1 file changed

+3
-0
lines changed

spring-native-configuration/src/main/java/org/springframework/cloud/sleuth/TraceHints.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.springframework.cloud.sleuth;
22

3+
import org.springframework.nativex.hint.AotProxyHint;
4+
import org.springframework.nativex.hint.ProxyBits;
35
import zipkin2.reporter.AsyncReporter;
46

57
import org.springframework.cloud.sleuth.autoconfig.brave.BraveAutoConfiguration;
@@ -8,6 +10,7 @@
810
import org.springframework.nativex.hint.TypeHint;
911
import org.springframework.nativex.type.NativeConfiguration;
1012

13+
@AotProxyHint(targetClass=org.springframework.r2dbc.connection.R2dbcTransactionManager.class, proxyFeatures = ProxyBits.IS_STATIC)
1114
@NativeHint(trigger = AsyncReporter.class, options = "--enable-url-protocols=http")
1215
@NativeHint(trigger = BraveAutoConfiguration.class, types = {
1316
@TypeHint(typeNames = {"org.springframework.cloud.context.scope.GenericScope$LockedScopedProxyFactoryBean", "brave.kafka.clients.TracingProducer", "brave.kafka.clients.TracingConsumer"})

0 commit comments

Comments
 (0)