-
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.
Merge pull request #954 from ivantopo/issue-#798/instrument-4x-cassan…
…dra-driver bring tracing support for Cassandra 4.x driver, fixes #798
- Loading branch information
Showing
13 changed files
with
277 additions
and
29 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
2 changes: 1 addition & 1 deletion
2
...andra/src/test/resources/application.conf → ...a/src/testCas3/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
kamon.instrumentation.cassandra { | ||
tracing.create-round-trip-spans = yes | ||
metrics.track-node-connection-pools = yes | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
</configuration> | ||
</configuration> |
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.