Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Use shorter debug string in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir gore authored and mihir gore committed Dec 13, 2023
1 parent bd2886b commit b1b852c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.TypeLiteral;
import com.google.protobuf.TextFormat;
import io.grpc.Status;
import io.micrometer.core.instrument.Timer;
import java.time.Duration;
Expand Down Expand Up @@ -219,7 +220,7 @@ public EntitiesResponse getEntities(
LOG.info(
"Total query execution took: {}(ms) for request: {}",
queryExecutionTime,
originalRequest);
TextFormat.printer().shortDebugString(originalRequest));

Check warning on line 223 in gateway-service-impl/src/main/java/org/hypertrace/gateway/service/entity/EntityService.java

View check run for this annotation

Codecov / codecov/patch

gateway-service-impl/src/main/java/org/hypertrace/gateway/service/entity/EntityService.java#L223

Added line #L223 was not covered by tests
}

queryExecutionTimer.record(queryExecutionTime, TimeUnit.MILLISECONDS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ scopeFiltersConfig = [
]

entity.service.log.config = {
query.threshold.millis = 25000
query.threshold.millis = 1500
}

metrics.reporter {
Expand Down

0 comments on commit b1b852c

Please sign in to comment.