diff --git a/sdk/spring/azure-spring-data-cosmos/README.md b/sdk/spring/azure-spring-data-cosmos/README.md index 34030b43dbee..b6334d9a7cff 100644 --- a/sdk/spring/azure-spring-data-cosmos/README.md +++ b/sdk/spring/azure-spring-data-cosmos/README.md @@ -160,16 +160,17 @@ public class AppConfiguration extends AbstractCosmosConfiguration { @Value("${azure.cosmos.diagnosticsThresholds.pointOperationLatencyThresholdInMS}") private int pointOperationLatencyThresholdInMS; - + @Value("${azure.cosmos.diagnosticsThresholds.nonPointOperationLatencyThresholdInMS}") private int nonPointOperationLatencyThresholdInMS; - + @Value("${azure.cosmos.diagnosticsThresholds.requestChargeThresholdInRU}") private int requestChargeThresholdInRU; - + @Value("${azure.cosmos.diagnosticsThresholds.payloadSizeThresholdInBytes}") private int payloadSizeThresholdInBytes; + private AzureKeyCredential azureKeyCredential; @Bean @@ -237,15 +238,15 @@ public CosmosClientBuilder getCosmosClientBuilder() { .endpoint(uri) .directMode(directConnectionConfig, gatewayConnectionConfig) .clientTelemetryConfig( - new CosmosClientTelemetryConfig() - .diagnosticsThresholds( - new CosmosDiagnosticsThresholds() - .setNonPointOperationLatencyThreshold(Duration.ofMillis(nonPointOperationLatencyThresholdInMS)) - .setPointOperationLatencyThreshold(Duration.ofMillis(pointOperationLatencyThresholdInMS)) - .setPayloadSizeThreshold(payloadSizeThresholdInBytes) - .setRequestChargeThreshold(requestChargeThresholdInRU) - ) - .diagnosticsHandler(CosmosDiagnosticsHandler.DEFAULT_LOGGING_HANDLER)); + new CosmosClientTelemetryConfig() + .diagnosticsThresholds( + new CosmosDiagnosticsThresholds() + .setNonPointOperationLatencyThreshold(Duration.ofMillis(nonPointOperationLatencyThresholdInMS)) + .setPointOperationLatencyThreshold(Duration.ofMillis(pointOperationLatencyThresholdInMS)) + .setPayloadSizeThreshold(payloadSizeThresholdInBytes) + .setRequestChargeThreshold(requestChargeThresholdInRU) + ) + .diagnosticsHandler(CosmosDiagnosticsHandler.DEFAULT_LOGGING_HANDLER)); } @Override diff --git a/sdk/spring/spring-cloud-azure-starter-active-directory-b2c/pom.xml b/sdk/spring/spring-cloud-azure-starter-active-directory-b2c/pom.xml index b04891b2529f..b61ada9d2ec3 100644 --- a/sdk/spring/spring-cloud-azure-starter-active-directory-b2c/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-active-directory-b2c/pom.xml @@ -113,6 +113,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-active-directory/pom.xml b/sdk/spring/spring-cloud-azure-starter-active-directory/pom.xml index 8d82f4721d11..8cfb7e7328cf 100644 --- a/sdk/spring/spring-cloud-azure-starter-active-directory/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-active-directory/pom.xml @@ -107,6 +107,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-actuator/pom.xml b/sdk/spring/spring-cloud-azure-starter-actuator/pom.xml index 0a6fded1403f..f465219e6eac 100644 --- a/sdk/spring/spring-cloud-azure-starter-actuator/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-actuator/pom.xml @@ -102,6 +102,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-appconfiguration/pom.xml b/sdk/spring/spring-cloud-azure-starter-appconfiguration/pom.xml index e0270e5785b2..28b5f0c82229 100644 --- a/sdk/spring/spring-cloud-azure-starter-appconfiguration/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-appconfiguration/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml b/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml index 3889767046de..b6aa19625cc2 100644 --- a/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-data-cosmos/pom.xml b/sdk/spring/spring-cloud-azure-starter-data-cosmos/pom.xml index eb6bc8e7f293..a863ba799590 100644 --- a/sdk/spring/spring-cloud-azure-starter-data-cosmos/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-data-cosmos/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-eventgrid/pom.xml b/sdk/spring/spring-cloud-azure-starter-eventgrid/pom.xml index b5e347500657..00d7df4b93e0 100644 --- a/sdk/spring/spring-cloud-azure-starter-eventgrid/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-eventgrid/pom.xml @@ -99,6 +99,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-eventhubs/pom.xml b/sdk/spring/spring-cloud-azure-starter-eventhubs/pom.xml index fdd33f054a30..da8a9082e8fc 100644 --- a/sdk/spring/spring-cloud-azure-starter-eventhubs/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-eventhubs/pom.xml @@ -105,6 +105,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-integration-eventhubs/pom.xml b/sdk/spring/spring-cloud-azure-starter-integration-eventhubs/pom.xml index df792aa42c8c..1fa6841709f9 100644 --- a/sdk/spring/spring-cloud-azure-starter-integration-eventhubs/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-integration-eventhubs/pom.xml @@ -103,6 +103,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml b/sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml index a7f73c83610a..eacb2698380d 100644 --- a/sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml @@ -103,6 +103,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml b/sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml index 9ff598a0963b..ca65dcc0d9f9 100644 --- a/sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml @@ -106,6 +106,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-jdbc-mysql/pom.xml b/sdk/spring/spring-cloud-azure-starter-jdbc-mysql/pom.xml index f5eeddd0c5ec..734b5ffce9f8 100644 --- a/sdk/spring/spring-cloud-azure-starter-jdbc-mysql/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-jdbc-mysql/pom.xml @@ -104,6 +104,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-jdbc-postgresql/pom.xml b/sdk/spring/spring-cloud-azure-starter-jdbc-postgresql/pom.xml index 41b5484e4a04..355879d87838 100644 --- a/sdk/spring/spring-cloud-azure-starter-jdbc-postgresql/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-jdbc-postgresql/pom.xml @@ -104,6 +104,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-keyvault-certificates/pom.xml b/sdk/spring/spring-cloud-azure-starter-keyvault-certificates/pom.xml index d190a42a05bd..7cc40232947c 100644 --- a/sdk/spring/spring-cloud-azure-starter-keyvault-certificates/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-keyvault-certificates/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-keyvault-secrets/pom.xml b/sdk/spring/spring-cloud-azure-starter-keyvault-secrets/pom.xml index 8f27d483aafd..6b8cc1901ffb 100644 --- a/sdk/spring/spring-cloud-azure-starter-keyvault-secrets/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-keyvault-secrets/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-keyvault/pom.xml b/sdk/spring/spring-cloud-azure-starter-keyvault/pom.xml index a45e418abce8..e5238f889f39 100644 --- a/sdk/spring/spring-cloud-azure-starter-keyvault/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-keyvault/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml b/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml index ab3565f31898..e8ee0a02d067 100644 --- a/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml @@ -150,6 +150,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-servicebus/pom.xml b/sdk/spring/spring-cloud-azure-starter-servicebus/pom.xml index 8fb222b8ac2e..34cb83d4bb23 100644 --- a/sdk/spring/spring-cloud-azure-starter-servicebus/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-servicebus/pom.xml @@ -98,6 +98,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-storage-blob/pom.xml b/sdk/spring/spring-cloud-azure-starter-storage-blob/pom.xml index 5cd03f274322..bd30bba25516 100644 --- a/sdk/spring/spring-cloud-azure-starter-storage-blob/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-storage-blob/pom.xml @@ -98,6 +98,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-storage-file-share/pom.xml b/sdk/spring/spring-cloud-azure-starter-storage-file-share/pom.xml index a262a5426969..ba706d124c77 100644 --- a/sdk/spring/spring-cloud-azure-starter-storage-file-share/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-storage-file-share/pom.xml @@ -98,6 +98,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-storage-queue/pom.xml b/sdk/spring/spring-cloud-azure-starter-storage-queue/pom.xml index 422895697be8..ea4c14cfb51a 100644 --- a/sdk/spring/spring-cloud-azure-starter-storage-queue/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-storage-queue/pom.xml @@ -101,6 +101,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-storage/pom.xml b/sdk/spring/spring-cloud-azure-starter-storage/pom.xml index 74eb11d8a2a4..994b180a0d3e 100644 --- a/sdk/spring/spring-cloud-azure-starter-storage/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-storage/pom.xml @@ -104,6 +104,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml b/sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml index 21c1772aacbf..726201115339 100644 --- a/sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml @@ -93,6 +93,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml b/sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml index 6acff683d02b..4b56b92064a8 100644 --- a/sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml @@ -93,6 +93,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin diff --git a/sdk/spring/spring-cloud-azure-starter/pom.xml b/sdk/spring/spring-cloud-azure-starter/pom.xml index 0b4b8b4bdcaf..fb060897e07d 100644 --- a/sdk/spring/spring-cloud-azure-starter/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter/pom.xml @@ -97,6 +97,30 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.2.2 + + true + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + true + + + + com.azure.tools + codesnippet-maven-plugin + 1.0.0-beta.8 + + true + + org.apache.maven.plugins maven-jar-plugin