Skip to content

Commit

Permalink
remove useless json_size metric (airbytehq#18247)
Browse files Browse the repository at this point in the history
  • Loading branch information
colesnodgrass authored Oct 24, 2022
1 parent 74defd1 commit b23565e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public Stream<AirbyteMessage> create(final BufferedReader bufferedReader) {
.lines()
.peek(str -> metricClient.distribution(OssMetricsRegistry.JSON_STRING_LENGTH, str.length()))
.flatMap(this::parseJson)
.peek(json -> metricClient.distribution(OssMetricsRegistry.JSON_SIZE, json.size()))
.filter(this::validate)
.flatMap(this::toAirbyteMessage)
.filter(this::filterLog);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ public enum OssMetricsRegistry implements MetricsRegistry {
MetricEmittingApps.WORKER,
"json_string_length",
"string length of a raw json string"),
JSON_SIZE(
MetricEmittingApps.WORKER,
"json_size",
"size of the json object"),
KUBE_POD_PROCESS_CREATE_TIME_MILLISECS(
MetricEmittingApps.WORKER,
"kube_pod_process_create_time_millisecs",
Expand Down

0 comments on commit b23565e

Please sign in to comment.