googleapis / googleapis/google-cloud-java

[sdk-platform-java] [o11y] Investigate 500 error reported when client points to non-existent host

未关闭
#12,669 0 条评论 0 个 reaction 已指派 1 人 已被 @jinseopkim0 认领 在 GitHub 查看
priority: p3 type: bug
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

**HTTP Client failures case name and attributes conform to requirements**

* **Manual test:** We try to hit a non-existent host.

```java
TranslationServiceSettings.Builder settingsBuilder = TranslationServiceSettings.newBuilder();

settingsBuilder
.getStubSettingsBuilder()
.setEndpoint("non-existent:1234")
.setTracerFactory(createOpenTelemetryTracerFactory());
```

* **HTTP**
* Image

* Confirmed this 500 (`UnknwonException`) is part of unwrapping the exception (see [related code](https://github.com/googleapis/google-cloud-java/blob/59441275c916aa4698463c116de6f80558f46534/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/ErrorTypeUtil.java#L204-L212)). The actual code may not be desired but it respects the logic, so if a fix is wanted it should be done in gax-httpjson

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。