Skip to content

Commit d81e73f

Browse files
committed
C#: Add telemetry query for supported sinks.
1 parent e4f6321 commit d81e73f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @name Supported sinks in external libraries
3+
* @description A list of 3rd party APIs detected as sinks. Excludes test and generated code.
4+
* @kind metric
5+
* @tags summary
6+
* @id csharp/telemetry/supported-external-api-sinks
7+
*/
8+
9+
import csharp
10+
import ExternalAPI
11+
12+
from ExternalAPI api, int usages
13+
where
14+
not api.isUninteresting() and
15+
api.isSink() and
16+
usages = strictcount(Call c | c.getTarget() = api)
17+
select api.getInfo() as info, usages order by usages desc

0 commit comments

Comments
 (0)