Skip to content
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

Instrument self hosted Kafka connectors #7959

Merged
merged 5 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions dd-java-agent/instrumentation/kafka-connect-0.11/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
muzzle {
pass {
group = "org.apache.kafka"
module = "connect-runtime"
versions = "[0.11.0.0,)"
assertInverse = true
}
}

apply from: "$rootDir/gradle/java.gradle"

dependencies {
compileOnly group: 'org.apache.kafka', name: 'connect-runtime', version: '0.11.0.0'

testImplementation(testFixtures(project(':dd-java-agent:agent-iast')))
testRuntimeOnly project(':dd-java-agent:instrumentation:iast-instrumenter')
testRuntimeOnly project(':dd-java-agent:instrumentation:java-lang')
testRuntimeOnly project(':dd-java-agent:instrumentation:java-io')
testRuntimeOnly project(':dd-java-agent:instrumentation:jackson-core')
testRuntimeOnly project(':dd-java-agent:instrumentation:jackson-core:jackson-core-2.8')
testImplementation(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.10')
testImplementation group: 'org.assertj', name: 'assertj-core', version: '2.9.+'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.19.0'
testImplementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.3'
testImplementation 'org.apache.kafka:connect-api:2.7.0' // Fixed version
testImplementation 'org.apache.kafka:connect-runtime:2.7.0'
testImplementation 'org.apache.kafka:connect-file:2.7.0' // For FileStreamSourceConnector
testImplementation 'org.apache.kafka:kafka-clients:2.7.0'
// Spring Kafka Test library
testImplementation 'org.springframework.kafka:spring-kafka-test:2.7.9' // Version compatible with Kafka 2.7.x
testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-clients-0.11')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please also add testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-clients-3.8') ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for kafka-streams-0.11 and kafka-streams-1.0 just in case to test interactions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added them here. They should not be applied. Is that OK?

}

configurations.testRuntimeClasspath {
// spock-core depends on assertj version that is not compatible with kafka-clients
resolutionStrategy.force 'org.assertj:assertj-core:2.9.1'
}
Loading
Loading