Skip to content

Commit a77b14d

Browse files
authored
Fix just merged code (#2607)
I forgot to remove a test commit from #2596: 31a066d
1 parent c44d4b2 commit a77b14d

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
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
@@ -603,6 +603,9 @@ public static String getHttpUrlFromServerSpan(Attributes attributes) {
603603
return null;
604604
}
605605
String host = attributes.get(SemanticAttributes.NET_HOST_NAME);
606+
if (host == null) {
607+
return null;
608+
}
606609
Long port = attributes.get(SemanticAttributes.NET_HOST_PORT);
607610
String target = attributes.get(SemanticAttributes.HTTP_TARGET);
608611
if (target == null) {

smoke-tests/apps/WebFlux/src/smokeTest/resources/applicationinsights.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)