@@ -61,6 +61,7 @@ public async Task<IHttpActionResult> Get(
6161 ODataQueryOptions < V2FeedPackage > options ,
6262 [ FromUri ] string semVerLevel = null )
6363 {
64+ _telemetryService . TrackApiRequest ( "/api/v2/Packages?semVerLevel=" ) ;
6465 return await GetAsync (
6566 options ,
6667 semVerLevel ,
@@ -74,6 +75,7 @@ public async Task<IHttpActionResult> GetCount(
7475 ODataQueryOptions < V2FeedPackage > options ,
7576 [ FromUri ] string semVerLevel = null )
7677 {
78+ _telemetryService . TrackApiRequest ( "/api/v2/Packages/$count?semVerLevel=" ) ;
7779 return ( await GetAsync (
7880 options ,
7981 semVerLevel ,
@@ -198,6 +200,7 @@ public async Task<IHttpActionResult> Get(
198200 string version ,
199201 [ FromUri ] bool hijack = true )
200202 {
203+ _telemetryService . TrackApiRequest ( "/api/v2/Packages(Id=,Version=)" ) ;
201204 // We are defaulting to semVerLevel = "2.0.0" by design.
202205 // The client is requesting a specific package version and should support what it requests.
203206 // If not, too bad :)
@@ -226,6 +229,7 @@ public async Task<IHttpActionResult> FindPackagesById(
226229 [ FromODataUri ] string id ,
227230 [ FromUri ] string semVerLevel = null )
228231 {
232+ _telemetryService . TrackApiRequest ( "/api/v2/FindPackagesById()?id=&semVerLevel=" ) ;
229233 return await FindPackagesByIdAsync (
230234 options ,
231235 id ,
@@ -244,6 +248,7 @@ public async Task<IHttpActionResult> FindPackagesByIdCount(
244248 [ FromODataUri ] string id ,
245249 [ FromUri ] string semVerLevel = null )
246250 {
251+ _telemetryService . TrackApiRequest ( "/api/v2/FindPackagesById()/$count?semVerLevel=" ) ;
247252 return ( await FindPackagesByIdAsync (
248253 options ,
249254 id ,
@@ -413,6 +418,7 @@ private async Task<IHttpActionResult> GetCoreAsync(
413418 [ HttpGet ]
414419 public IHttpActionResult GetPropertyFromPackages ( string propertyName , string id , string version )
415420 {
421+ _telemetryService . TrackApiRequest ( "/api/v2/Packages(Id=,Version=)/propertyName" ) ;
416422 switch ( propertyName . ToLowerInvariant ( ) )
417423 {
418424 case "id" : return Ok ( id ) ;
@@ -436,6 +442,7 @@ public async Task<IHttpActionResult> Search(
436442 [ FromODataUri ] bool includePrerelease = false ,
437443 [ FromUri ] string semVerLevel = null )
438444 {
445+ _telemetryService . TrackApiRequest ( "/api/v2/Search()?searchTerm=&targetFramework=&includePrerelease=" ) ;
439446 return await SearchAsync (
440447 options ,
441448 searchTerm ,
@@ -458,6 +465,7 @@ public async Task<IHttpActionResult> SearchCount(
458465 [ FromODataUri ] bool includePrerelease = false ,
459466 [ FromUri ] string semVerLevel = null )
460467 {
468+ _telemetryService . TrackApiRequest ( "/api/v2/Search()/$count?searchTerm=&targetFramework=&includePrerelease=&semVerLevel=" ) ;
461469 return ( await SearchAsync (
462470 options ,
463471 searchTerm ,
@@ -589,6 +597,7 @@ public IHttpActionResult GetUpdates(
589597 [ FromODataUri ] string versionConstraints = "" ,
590598 [ FromUri ] string semVerLevel = null )
591599 {
600+ _telemetryService . TrackApiRequest ( "/api/v2/GetUpdates()?packageIds=&versions=&includePrerelease=&includeAllVersions=&targetFrameworks=&versionConstraints=&semVerLevel=" ) ;
592601 if ( string . IsNullOrEmpty ( packageIds ) || string . IsNullOrEmpty ( versions ) )
593602 {
594603 return TrackedQueryResult (
@@ -684,6 +693,7 @@ public IHttpActionResult GetUpdatesCount(
684693 [ FromODataUri ] string versionConstraints = "" ,
685694 [ FromUri ] string semVerLevel = null )
686695 {
696+ _telemetryService . TrackApiRequest ( "/api/v2/GetUpdates()/$count?packageIds=&versions=&includePrerelease=&includeAllVersions=&targetFrameworks=&versionConstraints=&semVerLevel=" ) ;
687697 return GetUpdates (
688698 options ,
689699 packageIds ,
0 commit comments