Skip to content

Commit 4341890

Browse files
authored
1 parent 63e52a8 commit 4341890

File tree

1 file changed

+3
-0
lines changed
  • agent/azure-monitor-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation

1 file changed

+3
-0
lines changed

agent/azure-monitor-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ private static void applyHttpClientSpan(
300300
Long httpStatusCode = attributes.get(SemanticAttributes.HTTP_STATUS_CODE);
301301
if (httpStatusCode != null) {
302302
telemetryBuilder.setResultCode(Long.toString(httpStatusCode));
303+
} else {
304+
// https://1dsdocs.azurewebsites.net/schema/Mappings/AzureMonitor-AI.html#remotedependencyresultcode
305+
telemetryBuilder.setResultCode("0");
303306
}
304307

305308
telemetryBuilder.setData(httpUrl);

0 commit comments

Comments
 (0)