-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring tracing support for Cassandra 4.x driver
- Loading branch information
Showing
13 changed files
with
274 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
lazy val Cassandra3xTest = config("testCas3") extend(Test) | ||
lazy val Cassandra4xTest = config("testCas4") extend(Test) | ||
|
||
val cassandra3xDriverVersion = "3.10.0" | ||
val cassandra4xDriverVersion = "4.10.0" | ||
|
||
libraryDependencies ++= Seq( | ||
kanelaAgent % "provided", | ||
scalatest % "test", | ||
logbackClassic % "test", | ||
"org.testcontainers" % "cassandra" % "1.15.2" % "test" | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"com.datastax.cassandra" % "cassandra-driver-core" % cassandra3xDriverVersion % "provided,testCas3" | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"com.datastax.oss" % "java-driver-core" % cassandra4xDriverVersion % "provided,testCas4", | ||
"com.datastax.oss" % "java-driver-query-builder" % cassandra4xDriverVersion % "provided,testCas4" | ||
) | ||
|
||
configs(Cassandra3xTest, Cassandra4xTest) | ||
inConfig(Cassandra3xTest)(Defaults.testSettings) | ||
inConfig(Cassandra4xTest)(Defaults.testSettings) | ||
|
||
test in Test := { | ||
(test in Cassandra3xTest).value | ||
(test in Cassandra4xTest).value | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
instrumentation/kamon-cassandra/src/testCas4/resources/application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kamon.instrumentation.cassandra { | ||
tracing.create-round-trip-spans = yes | ||
metrics.track-node-connection-pools = yes | ||
} |
16 changes: 16 additions & 0 deletions
16
instrumentation/kamon-cassandra/src/testCas4/resources/logback.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<configuration> | ||
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="org.hyperic" level="OFF"/> | ||
<logger name="org.cassandraunit" level="OFF"/> | ||
<logger name="org.apache" level="OFF"/> | ||
|
||
<root level="WARN"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
</configuration> |
Oops, something went wrong.