File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
sdk-platform-java/gax-java/gax/src
main/java/com/google/api/gax/tracing
test/java/com/google/api/gax/tracing Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ void recordActionableError(Throwable error) {
7777 }
7878
7979 Map <String , Object > logContext = new HashMap <>(apiTracerContext .getAttemptAttributes ());
80- logContext .putAll (ObservabilityUtils .getResponseAttributes (error , apiTracerContext .transport ()));
80+ logContext .putAll (
81+ ObservabilityUtils .getResponseAttributes (error , apiTracerContext .transport ()));
8182
8283 if (error != null && error .getMessage () != null ) {
8384 logContext .put ("exception.message" , error .getMessage ());
Original file line number Diff line number Diff line change @@ -220,9 +220,7 @@ void testRecordActionableError_logsHttpStatus() {
220220 assertEquals (
221221 "INVALID_ARGUMENT" ,
222222 attributesMap .get (ObservabilityAttributes .RPC_RESPONSE_STATUS_ATTRIBUTE ));
223- assertEquals (
224- 400L ,
225- attributesMap .get (ObservabilityAttributes .HTTP_RESPONSE_STATUS_ATTRIBUTE ));
223+ assertEquals (400L , attributesMap .get (ObservabilityAttributes .HTTP_RESPONSE_STATUS_ATTRIBUTE ));
226224 }
227225
228226 private Map <String , ?> getAttributesMap () {
You can’t perform that action at this time.
0 commit comments