Commit 2fc938a
authored
fix:
Fixes #3015
Fixes #3014
Gax tracing internally works with `attemptFailedDuration`, which
defaults to a no-op. Downstream libraries use `attemptFailed`, which has
a custom behavior. What happens when an attempt-failed event occurs is
that `attemptFailedDuration` is called instead (in favor of using
java.time methods internally). This fix makes `attemptFailedDuration`'s
behavior to delegate the logic to `attemptFailed`.
The downstreams will keep failing because the repos haven't got adapted
to the new change in gax. See the follow ups below.
### Fixes in `java-spanner`

### Fixes in `java-bigtable`

### Follow ups in `java-bigtable`
More failures in java-bigtable to be addressed in that repo:
```
Error: BigtableTableAdminSettingsTest.testToString:175 expected to contain: totalTimeout=PT13H32M
but was : BigtableTableAdminSettings{projectId=our-project-85, instanceId=our-instance-06,
...
```
Fixed in googleapis/java-bigtable#2274
### Follow ups in `java-spanner`
```
Error: Failures:
Error: CompositeTracerTest.testMethodsOverrideMetricsTracer:238 Method not found in compositeTracerMethods: public void com.google.api.gax.tracing.MetricsTracer.attemptFailedDuration(java.lang.Throwable,java.time.Duration)
```
Fixed in googleapis/java-spanner#3200BaseApiTracer to noop on attemptFailed via overloaded method call (#3016)1 parent 99bb2b3 commit 2fc938a
File tree
1 file changed
+5
-2
lines changed- gax-java/gax/src/main/java/com/google/api/gax/tracing
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments