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

feat: Instrument thread pools #278

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 7 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ maven.artifact(
artifact = "grpc-testing",
group = "io.grpc",
)
maven.artifact(
testonly = True,
artifact = "opentelemetry-sdk-testing",
group = "io.opentelemetry",
)
maven.install(
name = "maven",
artifacts = [
Expand Down Expand Up @@ -211,6 +216,7 @@ maven.install(
# OpenTelemetry.
"io.opentelemetry:opentelemetry-api",
"io.opentelemetry:opentelemetry-context",
"io.opentelemetry:opentelemetry-sdk",

# Reactor.
"org.reactivestreams:reactive-streams",
Expand All @@ -227,7 +233,6 @@ maven.install(
"org.yaml:snakeyaml:2.2",
"org.liquibase:liquibase-core:4.26.0",
"com.google.cloudspannerecosystem:liquibase-spanner:4.25.1",
"com.google.cloud:google-cloud-spanner-jdbc:2.15.1",
"org.liquibase.ext:liquibase-postgresql:4.11.0",

# Math library.
Expand All @@ -250,7 +255,7 @@ maven.install(
"io.grpc:grpc-bom:" + GRPC_JAVA_VERSION,
"com.google.cloud:libraries-bom:26.45.0",
"software.amazon.awssdk:bom:" + AWS_JAVA_SDK_VERSION,
"io.opentelemetry:opentelemetry-bom:1.37.0",
"io.opentelemetry:opentelemetry-bom:1.42.1",
"org.testcontainers:testcontainers-bom:1.19.3",
"io.projectreactor:reactor-bom:2023.0.9",
],
Expand Down
6 changes: 6 additions & 0 deletions imports/java/io/opentelemetry/sdk/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package(default_visibility = ["//visibility:public"])

alias(
name = "sdk",
actual = "@maven//:io_opentelemetry_opentelemetry_sdk",
)
6 changes: 6 additions & 0 deletions imports/java/io/opentelemetry/sdk/testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package(default_visibility = ["//visibility:public"])

alias(
name = "testing",
actual = "@maven//:io_opentelemetry_opentelemetry_sdk_testing",
)
122 changes: 82 additions & 40 deletions maven_install.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL",
"__INPUT_ARTIFACTS_HASH": 1644744982,
"__RESOLVED_ARTIFACTS_HASH": -1860436502,
"__INPUT_ARTIFACTS_HASH": -1541156068,
"__RESOLVED_ARTIFACTS_HASH": 1589895329,
"artifacts": {
"com.adobe.testing:s3mock": {
"shasums": {
Expand Down Expand Up @@ -552,10 +552,10 @@
},
"com.google.cloud:google-cloud-spanner-jdbc": {
"shasums": {
"jar": "8a7b562e89f2cb87a6b50f6ece06f2e93667dcf072b1d1e8194fdea1bd51e5f7",
"sources": "f319650eb71b5375f327919d3a4dd4465e06ee1caa279faf75ba5d56ef94d5b8"
"jar": "d009bf8fa28490b92b1b95bf789b6610569f16de603c7fbbec64d69e1a073f0a",
"sources": "a880fd80ed843d3d90e1e971352886c5aff1bdf0517b68998724d6b189ed089c"
},
"version": "2.15.1"
"version": "2.21.0"
},
"com.google.cloud:google-cloud-storage": {
"shasums": {
Expand Down Expand Up @@ -1179,66 +1179,73 @@
},
"io.opentelemetry:opentelemetry-api": {
"shasums": {
"jar": "35976d45acb98fb3fb527c3aced3e3398443e8664fccd069ea4bd2eca0c294ed",
"sources": "0349f3dfcf5b80907254cc56769544d04ddb4ce613e2273bc3f089b86f7f13e4"
"jar": "6b0f9d067260ea3ed6c3960352b80800b993cb3962fa6fb1b6383cd04c3c0874",
"sources": "0c3c8c37171fa4eb7e2201cb575fee8ae5eb681890b849e3ef42c7d793eec841"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-api-incubator": {
"shasums": {
"jar": "9dd36c6744b73c4d85e669cb646fa1f8b8c1888a4e3c0b9d04d2eebf24f3a875",
"sources": "588f6467bb01972c582a5eb65179010a527284c71be961da07ff2a238de07d91"
"jar": "2d5f478fe5971dc6cc454b483f84151280559f1e1a4b8dabea346fd425b6ad47",
"sources": "b924e38a40889978363ad07385d86e67a1112df4e5118578dd1c088d1ef110c3"
},
"version": "1.41.0-alpha"
"version": "1.42.1-alpha"
},
"io.opentelemetry:opentelemetry-context": {
"shasums": {
"jar": "98071a718fdb48a493460685660ba92074e0dcea01c545109894d3137df3b6f0",
"sources": "a1098a82e2c7f1e0e70faafbc303d4490418e329674249865bc323956f1b526a"
"jar": "fc8f47bc94bec89a3dbdbcf631470fb7fd7d3e628b10d43bc376f17ebde4b405",
"sources": "143f5c77ced023235554da06e4c39b732d995f9599bf518bf4dae4a1bc9ae0bc"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk": {
"shasums": {
"jar": "937c7cb743dab7aa566949166462493323683c188e2201a66aa6c2c59bf7dc23",
"sources": "4760eca7b00fe1644473e8e8bf9c91cc953663522148afa77a550e2806b16dcc"
"jar": "df28b75c2df629c8971fd4afb59036d4861dc96789e6760a54a4266499ced5fb",
"sources": "2071f11cdc2caf4814b3ad60d2b49e578cee4d67676c693ff9d646e1073e07cd"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-common": {
"shasums": {
"jar": "1f28165898fecdba9ff9534b86a4ac6da2faa731bc0a59f1e40c116b72c90bd7",
"sources": "6d409ac226b00056de324d71c959d17a2532975c109e94fb009d64e12b9b0149"
"jar": "0cb2f9e93291ccfe7099ed424b7616e7e80ee51fdbbff99d2b2365f52428b179",
"sources": "62af024af0f5f13ee3f9640356073bf6dd819b47548f6fc2ceda90d34bc8b5e2"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi": {
"shasums": {
"jar": "d72d47544856baf5be86cbe402531bb7b27ce0ce9708c305dc7cbca0ca8f1ea2",
"sources": "348863e8b08cc0b555e5e7c4e88643dbb0917b23d692a08361df7de88c4e6b59"
"jar": "fe095e16871b942cae7fed6e0b3bbff462111fe62fe31ccd34d7542f8ebcfe90",
"sources": "4dd4752c749d50487ab0e5753dfbf9289a3efb5768c73fe5e575239513338a80"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-logs": {
"shasums": {
"jar": "d3490b686b64528ffb0ef345ada0a25af68dba658810ada25e7b127ceb98cf5c",
"sources": "a338abdde42b099b2be3583e7cc0b841cef89567eaed1e47c251742033a1e28c"
"jar": "e8229fe1305ad76a879d2dcccffb189308423fc45602bd20715dae9e52862bc0",
"sources": "c632f4d62c801d516e60d4899679de715d2897d4fffd7c737e26fba7ee60a452"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-metrics": {
"shasums": {
"jar": "50d129d9a15b691f806533f8edaf6c01f2e1e1e1825c93984ad75006aea2522f",
"sources": "70cf4731372f572e4a5a5a6727bb0a223235d2cbf53f58e6d31308fb7e0a6717"
"jar": "0144c6f2845c25baab653764b365d178f589cd9d427d8a30ea06dafdf75576c5",
"sources": "3a8d6977adc1b792cc00fdee48701efe4e3c5a7609aa2e4a62d46654ed530a56"
},
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-testing": {
"shasums": {
"jar": "402267cbc8fc93bbea0f85212e95ac7d3cf7e29c9f26dd88e9c43f7e1ef45280",
"sources": "7caeaa8d20e562450ef76672530af6c9dd49e3003071e5e8530d9bb86360aa42"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.opentelemetry:opentelemetry-sdk-trace": {
"shasums": {
"jar": "5743bc33f9f046a86c8d827e4c4e321c2224ec69f72e09153232148186f2c77b",
"sources": "f22039b046e6f5acd3c73fbed27c9c1b2a2cd654bf64830462f5622140f3946f"
"jar": "23a4ab8ed8cfb32cc3ef3a2bc921eb8e9f2c6c73e0bf184061c68b4fc2c98b02",
"sources": "bb7b29c5d7587e1ff0ce34b8162ad0c852eb000f27932995390588be8dcc7719"
},
"version": "1.37.0"
"version": "1.42.1"
},
"io.perfmark:perfmark-api": {
"shasums": {
Expand Down Expand Up @@ -2377,7 +2384,7 @@
"com.fasterxml.jackson.core:jackson-databind:2.12.7.1": "com.fasterxml.jackson.core:jackson-databind:2.17.2",
"com.fasterxml.jackson.core:jackson-databind:2.15.3": "com.fasterxml.jackson.core:jackson-databind:2.17.2",
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.3": "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2",
"com.google.api.grpc:proto-google-cloud-spanner-executor-v1:6.56.0": "com.google.api.grpc:proto-google-cloud-spanner-executor-v1:6.74.0",
"com.google.api.grpc:proto-google-cloud-spanner-executor-v1:6.73.0": "com.google.api.grpc:proto-google-cloud-spanner-executor-v1:6.74.0",
"com.google.apis:google-api-services-storage:v1-rev20240809-2.0.0": "com.google.apis:google-api-services-storage:v1-rev20240706-2.0.0",
"com.google.errorprone:error_prone_annotations:2.16": "com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.errorprone:error_prone_annotations:2.18.0": "com.google.errorprone:error_prone_annotations:2.28.0",
Expand All @@ -2386,7 +2393,6 @@
"com.google.errorprone:error_prone_annotations:2.23.0": "com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.errorprone:error_prone_annotations:2.26.1": "com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.errorprone:error_prone_annotations:2.30.0": "com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.guava:failureaccess:1.0.1": "com.google.guava:failureaccess:1.0.2",
"com.google.j2objc:j2objc-annotations:3.0.0": "com.google.j2objc:j2objc-annotations:2.8",
"commons-codec:commons-codec:1.15": "commons-codec:commons-codec:1.17.1",
"commons-codec:commons-codec:1.16.0": "commons-codec:commons-codec:1.17.1",
Expand All @@ -2408,7 +2414,7 @@
"io.netty:netty-transport-native-unix-common:4.1.112.Final": "io.netty:netty-transport-native-unix-common:4.1.108.Final",
"io.netty:netty-transport:4.1.100.Final": "io.netty:netty-transport:4.1.108.Final",
"io.netty:netty-transport:4.1.112.Final": "io.netty:netty-transport:4.1.108.Final",
"io.perfmark:perfmark-api:0.26.0": "io.perfmark:perfmark-api:0.27.0",
"io.opentelemetry:opentelemetry-api-incubator:1.41.0-alpha": "io.opentelemetry:opentelemetry-api-incubator:1.42.1-alpha",
"net.bytebuddy:byte-buddy-agent:1.10.9": "net.bytebuddy:byte-buddy-agent:1.14.15",
"net.bytebuddy:byte-buddy:1.10.9": "net.bytebuddy:byte-buddy:1.14.15",
"net.java.dev.jna:jna:5.13.0": "net.java.dev.jna:jna:5.9.0",
Expand All @@ -2417,10 +2423,8 @@
"org.apache.httpcomponents:httpclient:4.5.13": "org.apache.httpcomponents:httpclient:4.5.14",
"org.apache.httpcomponents:httpcore:4.4.13": "org.apache.httpcomponents:httpcore:4.4.16",
"org.checkerframework:checker-qual:3.31.0": "org.checkerframework:checker-qual:3.37.0",
"org.checkerframework:checker-qual:3.40.0": "org.checkerframework:checker-qual:3.37.0",
"org.checkerframework:checker-qual:3.42.0": "org.checkerframework:checker-qual:3.37.0",
"org.checkerframework:checker-qual:3.46.0": "org.checkerframework:checker-qual:3.37.0",
"org.codehaus.mojo:animal-sniffer-annotations:1.23": "org.codehaus.mojo:animal-sniffer-annotations:1.24",
"org.ow2.asm:asm-analysis:9.2": "org.ow2.asm:asm-analysis:9.5",
"org.ow2.asm:asm-commons:9.6": "org.ow2.asm:asm-commons:9.2",
"org.ow2.asm:asm-tree:9.2": "org.ow2.asm:asm-tree:9.5",
Expand All @@ -2429,8 +2433,7 @@
"org.ow2.asm:asm:9.6": "org.ow2.asm:asm:9.7",
"org.slf4j:slf4j-api:1.7.25": "org.slf4j:slf4j-api:1.7.36",
"org.slf4j:slf4j-api:1.7.30": "org.slf4j:slf4j-api:1.7.36",
"org.slf4j:slf4j-api:2.0.9": "org.slf4j:slf4j-api:1.7.36",
"org.threeten:threetenbp:1.6.8": "org.threeten:threetenbp:1.6.9"
"org.slf4j:slf4j-api:2.0.9": "org.slf4j:slf4j-api:1.7.36"
},
"dependencies": {
"com.adobe.testing:s3mock": [
Expand Down Expand Up @@ -2911,6 +2914,7 @@
"com.google.api.grpc:grpc-google-cloud-spanner-admin-instance-v1",
"com.google.api.grpc:grpc-google-cloud-spanner-v1",
"com.google.api.grpc:grpc-google-common-protos",
"com.google.api.grpc:proto-google-cloud-monitoring-v3",
"com.google.api.grpc:proto-google-cloud-spanner-admin-database-v1",
"com.google.api.grpc:proto-google-cloud-spanner-admin-instance-v1",
"com.google.api.grpc:proto-google-cloud-spanner-executor-v1",
Expand All @@ -2926,6 +2930,7 @@
"com.google.auto.value:auto-value-annotations",
"com.google.cloud:google-cloud-core",
"com.google.cloud:google-cloud-core-grpc",
"com.google.cloud:google-cloud-monitoring",
"com.google.cloud:google-cloud-spanner",
"com.google.cloud:grpc-gcp",
"com.google.code.findbugs:jsr305",
Expand All @@ -2941,7 +2946,6 @@
"com.google.protobuf:protobuf-java-util",
"com.google.re2j:re2j",
"commons-codec:commons-codec",
"commons-logging:commons-logging",
"io.grpc:grpc-alts",
"io.grpc:grpc-api",
"io.grpc:grpc-auth",
Expand All @@ -2962,6 +2966,11 @@
"io.opencensus:opencensus-contrib-grpc-util",
"io.opencensus:opencensus-contrib-http-util",
"io.opencensus:opencensus-proto",
"io.opentelemetry:opentelemetry-api",
"io.opentelemetry:opentelemetry-api-incubator",
"io.opentelemetry:opentelemetry-context",
"io.opentelemetry:opentelemetry-sdk-common",
"io.opentelemetry:opentelemetry-sdk-metrics",
"io.perfmark:perfmark-api",
"javax.annotation:javax.annotation-api",
"org.apache.httpcomponents:httpclient",
Expand Down Expand Up @@ -3348,6 +3357,21 @@
"io.opentelemetry:opentelemetry-api": [
"io.opentelemetry:opentelemetry-context"
],
"io.opentelemetry:opentelemetry-api-incubator": [
"io.opentelemetry:opentelemetry-api"
],
"io.opentelemetry:opentelemetry-sdk": [
"io.opentelemetry:opentelemetry-api",
"io.opentelemetry:opentelemetry-sdk-common",
"io.opentelemetry:opentelemetry-sdk-logs",
"io.opentelemetry:opentelemetry-sdk-metrics",
"io.opentelemetry:opentelemetry-sdk-trace"
],
"io.opentelemetry:opentelemetry-sdk-testing": [
"io.opentelemetry:opentelemetry-api",
"io.opentelemetry:opentelemetry-api-incubator",
"io.opentelemetry:opentelemetry-sdk"
],
"io.projectreactor.netty:reactor-netty-core": [
"io.netty:netty-handler",
"io.netty:netty-handler-proxy",
Expand Down Expand Up @@ -5677,11 +5701,22 @@
"io.opentelemetry.sdk.metrics.internal.state",
"io.opentelemetry.sdk.metrics.internal.view"
],
"io.opentelemetry:opentelemetry-sdk-testing": [
"io.opentelemetry.sdk.testing.assertj",
"io.opentelemetry.sdk.testing.context",
"io.opentelemetry.sdk.testing.exporter",
"io.opentelemetry.sdk.testing.junit4",
"io.opentelemetry.sdk.testing.junit5",
"io.opentelemetry.sdk.testing.logs",
"io.opentelemetry.sdk.testing.time",
"io.opentelemetry.sdk.testing.trace"
],
"io.opentelemetry:opentelemetry-sdk-trace": [
"io.opentelemetry.internal.shaded.jctools.counters",
"io.opentelemetry.internal.shaded.jctools.maps",
"io.opentelemetry.internal.shaded.jctools.queues",
"io.opentelemetry.internal.shaded.jctools.queues.atomic",
"io.opentelemetry.internal.shaded.jctools.queues.atomic.unpadded",
"io.opentelemetry.internal.shaded.jctools.queues.unpadded",
"io.opentelemetry.internal.shaded.jctools.util",
"io.opentelemetry.sdk.trace",
Expand Down Expand Up @@ -8838,6 +8873,8 @@
"io.opentelemetry:opentelemetry-sdk-logs:jar:sources",
"io.opentelemetry:opentelemetry-sdk-metrics",
"io.opentelemetry:opentelemetry-sdk-metrics:jar:sources",
"io.opentelemetry:opentelemetry-sdk-testing",
"io.opentelemetry:opentelemetry-sdk-testing:jar:sources",
"io.opentelemetry:opentelemetry-sdk-trace",
"io.opentelemetry:opentelemetry-sdk-trace:jar:sources",
"io.opentelemetry:opentelemetry-sdk:jar:sources",
Expand Down Expand Up @@ -9454,6 +9491,11 @@
"io.opentelemetry.contrib.gcp.resource.GCPResourceProvider"
]
},
"io.opentelemetry:opentelemetry-sdk-testing": {
"io.opentelemetry.context.ContextStorageProvider": [
"io.opentelemetry.sdk.testing.context.SettableContextStorageProvider"
]
},
"io.projectreactor.netty:reactor-netty-core": {
"io.micrometer.context.ContextAccessor": [
"reactor.netty.contextpropagation.ChannelContextAccessor"
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/org/wfanet/measurement/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kt_jvm_library(
"//imports/java/com/google/gson",
"//imports/java/com/google/protobuf",
"//imports/java/com/google/protobuf/util",
"//imports/java/io/opentelemetry/api",
"//imports/java/org/jetbrains/annotations",
"//imports/java/picocli",
"//imports/kotlin/com/google/protobuf/kotlin",
Expand Down
Loading
Loading