Skip to content

Commit d9d71b5

Browse files
committed
remove more application insights
1 parent 0b455a9 commit d9d71b5

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

RelistenApi/Controllers/LiveController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading.Tasks;
5-
using Microsoft.ApplicationInsights;
65
using Microsoft.AspNetCore.Mvc;
76
using Relisten.Api;
87
using Relisten.Api.Models;
@@ -66,9 +65,6 @@ public async Task<IActionResult> PlayedTrack(
6665
return BadRequest("Invalid track_uuid format");
6766
}
6867

69-
var telementry = new TelemetryClient();
70-
telementry.TrackEvent("played_track", new Dictionary<string, string> {{"app_type", app_type}});
71-
7268
SourceTrack track = null;
7369

7470
if (track_uuid != null && track_guid != Guid.Empty)

RelistenApi/Services/Importers/ArchiveOrgImporter.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Transactions;
99
using Hangfire.Console;
1010
using Hangfire.Server;
11-
using Microsoft.ApplicationInsights;
1211
using Newtonsoft.Json;
1312
using Relisten.Api.Models;
1413
using Relisten.Data;
@@ -166,15 +165,6 @@ await root.response.docs.AsyncForEachWithProgress(prog, async doc =>
166165
ctx?.WriteLine("\tSkipping {0} because it has an invalid, unrecoverable metadata: {1}",
167166
doc.identifier, detailsRoot.metadata);
168167

169-
var telementry = new TelemetryClient();
170-
171-
telementry.TrackException(new ArgumentException("Invalid, unrecoverable metadata"),
172-
new Dictionary<string, string>
173-
{
174-
{ "upstream_identifier", doc.identifier },
175-
{ "background_job_id", ctx?.BackgroundJob.Id }
176-
});
177-
178168
return;
179169
}
180170

@@ -205,11 +195,6 @@ await root.response.docs.AsyncForEachWithProgress(prog, async doc =>
205195
{
206196
ctx?.WriteLine($"Error processing {doc.identifier}:");
207197
ctx?.LogException(e);
208-
209-
var telementry = new TelemetryClient();
210-
211-
telementry.TrackException(e,
212-
new Dictionary<string, string> {{"upstream_identifier", doc.identifier}});
213198
}
214199
});
215200

RelistenApi/Services/ScheduledService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Hangfire.Console;
99
using Hangfire.RecurringJobExtensions;
1010
using Hangfire.Server;
11-
using Microsoft.ApplicationInsights;
1211
using Microsoft.Extensions.Configuration;
1312
using Relisten.Api.Models;
1413
using Relisten.Data;
@@ -196,11 +195,6 @@ PerformContext ctx
196195
ctx?.WriteLine($"Error processing {artist.name}:");
197196
ctx?.LogException(e);
198197

199-
var telementry = new TelemetryClient();
200-
201-
telementry.TrackException(e,
202-
new Dictionary<string, string> {{"artist_name", artist.name}, {"artist_id", artist.id.ToString()}});
203-
204198
throw;
205199
}
206200
finally

0 commit comments

Comments
 (0)