Skip to content

Commit

Permalink
Add metrics for get table parameters (Netflix#555)
Browse files Browse the repository at this point in the history
* Add metrics for get table parameters

* Fix javadoc

* Checkstyle

* Move get table metrics to request wrapper

* Remove hardcoded tags for catalog and database
  • Loading branch information
swaranga-netflix authored May 12, 2023
1 parent 33cb4be commit 1c26d5d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.netflix.metacat.main.api.v1;

import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import com.netflix.metacat.common.NameDateDto;
import com.netflix.metacat.common.QualifiedName;
import com.netflix.metacat.common.dto.CatalogDto;
Expand Down Expand Up @@ -686,6 +687,13 @@ public TableDto getTable(
return this.requestWrapper.processRequest(
name,
"getTable",
ImmutableMap.<String, String>builder()
.put("includeInfo", String.valueOf(includeInfo))
.put("includeDefinitionMetadata", String.valueOf(includeDefinitionMetadata))
.put("includeDataMetadata", String.valueOf(includeDataMetadata))
.put("includeMetadataFromConnector", String.valueOf(includeInfoDetails))
.put("includeMetadataLocationOnly", String.valueOf(includeMetadataLocationOnly))
.build(),
() -> {
final Optional<TableDto> table = this.tableService.get(
name,
Expand Down

0 comments on commit 1c26d5d

Please sign in to comment.