Skip to content

Commit a40817f

Browse files
committed
add comment for null hierarchyMarkerType in azure-functions instrumentation
1 parent 85648d1 commit a40817f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dd-java-agent/instrumentation/azure-functions/src/main/java/datadog/trace/instrumentation/azure/functions/AzureFunctionsInstrumentation.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public AzureFunctionsInstrumentation() {
3232

3333
@Override
3434
public String hierarchyMarkerType() {
35+
/*
36+
Due to the class-loading in the Azure Function environment we cannot assume that
37+
"com.microsoft.azure.functions.annotation.FunctionName" will be visible (as in defined as a
38+
resource) for any types using that annotation
39+
*/
3540
return null;
3641
}
3742

0 commit comments

Comments
 (0)