Skip to content

Commit 89bf35d

Browse files
authored
Merge pull request #4 from digma-ai/otlp_semcon
semcon code.namespace and code.function
2 parents 6843fb3 + 550562c commit 89bf35d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

EndpointMonitoring.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ public void OnNext(KeyValuePair<string, object?> pair)
101101
var descriptor = endpoint?.Metadata.GetMetadata<ControllerActionDescriptor>();
102102
if (descriptor == null)
103103
return;
104-
105-
Activity.Current?.AddTag("endpoint.type_full_name", descriptor.MethodInfo.DeclaringType?.ToString());
106-
Activity.Current?.AddTag("endpoint.function", descriptor.MethodInfo.Name);
104+
105+
Activity.Current?.AddTag("code.namespace", descriptor.MethodInfo.DeclaringType?.ToString());
106+
Activity.Current?.AddTag("code.function", descriptor.MethodInfo.Name);
107+
Activity.Current?.AddTag("endpoint.type_full_name", descriptor.MethodInfo.DeclaringType?.ToString());// should be deleted
108+
Activity.Current?.AddTag("endpoint.function", descriptor.MethodInfo.Name); //should be deleted
107109
}
108110
}
109111
}

0 commit comments

Comments
 (0)