From e0b2fdfea7edb9b02069c90ffc23aecfe4d65e09 Mon Sep 17 00:00:00 2001 From: Kipp Corman Date: Wed, 2 Oct 2024 14:12:52 -0500 Subject: [PATCH 1/3] DGS-15999 Add performanceMetric to global delete config API (#3263) --- .../kafka/schemaregistry/rest/resources/ConfigResource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ConfigResource.java b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ConfigResource.java index 451c002afb2..0f9399b3319 100644 --- a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ConfigResource.java +++ b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ConfigResource.java @@ -260,6 +260,7 @@ public Config getTopLevelConfig() { + "Error code 50001 indicates a failure in the backend data store.", content = @Content(schema = @Schema(implementation = ErrorMessage.class)))}) @Tags(@Tag(name = apiTag)) + @PerformanceMetric("config.delete-global") public void deleteTopLevelConfig( final @Suspended AsyncResponse asyncResponse, @Context HttpHeaders headers) { From 036d99528fc538b10b844ceaae873cde4361b397 Mon Sep 17 00:00:00 2001 From: Kipp Corman Date: Wed, 2 Oct 2024 14:13:03 -0500 Subject: [PATCH 2/3] DGS-15999 Add performanceMetric to list schema refs API (#3264) --- .../schemaregistry/rest/resources/SubjectVersionsResource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/SubjectVersionsResource.java b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/SubjectVersionsResource.java index d758f5e0d26..95cddb38071 100644 --- a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/SubjectVersionsResource.java +++ b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/SubjectVersionsResource.java @@ -181,6 +181,7 @@ public String getSchemaOnly( @GET @Path("/{version}/referencedby") + @PerformanceMetric("subjects.versions.list-schema-refs") @Operation(summary = "List schemas referencing a schema", description = "Retrieves the IDs of schemas that reference the specified schema.", responses = { From 4555074376029cb2227bcb331af67dcfb29699f1 Mon Sep 17 00:00:00 2001 From: Kipp Corman Date: Wed, 2 Oct 2024 15:08:11 -0500 Subject: [PATCH 3/3] DGS-15999 Add performanceMetric to get config metadata API (#3265) (#3311) --- .../schemaregistry/rest/resources/ServerMetadataResource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ServerMetadataResource.java b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ServerMetadataResource.java index 01812d27082..98ff211bbc3 100644 --- a/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ServerMetadataResource.java +++ b/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/ServerMetadataResource.java @@ -66,6 +66,7 @@ public ServerClusterId getClusterId() { @ApiResponse(responseCode = "500", description = "Error code 50001 -- Error in the backend data store\n") }) + @PerformanceMetric("metadata.version") public SchemaRegistryServerVersion getSchemaRegistryVersion() { return new SchemaRegistryServerVersion(AppInfoParser.getVersion(), AppInfoParser.getCommitId()); }