build.gradle.kts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation("io.opentelemetry.contrib:opentelemetry-aws-xray-propagator")
  6. library("software.amazon.awssdk:aws-core:2.2.0")
  7. library("software.amazon.awssdk:sqs:2.2.0")
  8. library("software.amazon.awssdk:sns:2.2.0")
  9. library("software.amazon.awssdk:aws-json-protocol:2.2.0")
  10. compileOnly(project(":muzzle")) // For @NoMuzzle
  11. testImplementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
  12. testLibrary("software.amazon.awssdk:dynamodb:2.2.0")
  13. testLibrary("software.amazon.awssdk:ec2:2.2.0")
  14. testLibrary("software.amazon.awssdk:kinesis:2.2.0")
  15. testLibrary("software.amazon.awssdk:rds:2.2.0")
  16. testLibrary("software.amazon.awssdk:s3:2.2.0")
  17. testLibrary("software.amazon.awssdk:ses:2.2.0")
  18. }
  19. testing {
  20. suites {
  21. val testCoreOnly by registering(JvmTestSuite::class) {
  22. sources {
  23. groovy {
  24. setSrcDirs(listOf("src/testCoreOnly/groovy"))
  25. }
  26. }
  27. dependencies {
  28. implementation(project())
  29. implementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
  30. implementation("software.amazon.awssdk:aws-core:2.2.0")
  31. implementation("software.amazon.awssdk:aws-json-protocol:2.2.0")
  32. implementation("software.amazon.awssdk:dynamodb:2.2.0")
  33. }
  34. }
  35. }
  36. }
  37. tasks {
  38. withType<Test> {
  39. // NB: If you'd like to change these, there is some cleanup work to be done, as most tests ignore this and
  40. // set the value directly (the "library" does not normally query it, only library-autoconfigure)
  41. systemProperty("otel.instrumentation.aws-sdk.experimental-span-attributes", true)
  42. systemProperty("otel.instrumentation.aws-sdk.experimental-use-propagator-for-messaging", true)
  43. }
  44. }