diff --git a/backend/controllers/calls.js b/backend/controllers/calls.js index e8559b7..e20c61e 100644 --- a/backend/controllers/calls.js +++ b/backend/controllers/calls.js @@ -2,7 +2,7 @@ const { ObjectId } = require('mongodb'); var { callModel: Call } = require("../models/call"); const Group = require("../models/group"); - +const opentelemetry = require('@opentelemetry/api'); var defaultNumResults = 50; var channels = {}; diff --git a/backend/controllers/uploads.js b/backend/controllers/uploads.js index b7cb349..594dc62 100644 --- a/backend/controllers/uploads.js +++ b/backend/controllers/uploads.js @@ -1,8 +1,6 @@ var path = require('path'); var fs = require('fs'); const opentelemetry = require('@opentelemetry/api'); - -var { context, propagation, trace } = require('@opentelemetry/api'); var sysStats = require("../sys_stats"); var System = require("../models/system"); var Talkgroup = require("../models/talkgroup"); @@ -27,9 +25,6 @@ const client = new S3Client({ exports.upload = async function (req, res, next) { - const tracer = trace.getTracer('upload-tracer'); - - process.nextTick(async () => { if (!req.file || ((path.extname(req.file.originalname) != '.m4a') && (path.extname(req.file.originalname) != '.mp3'))) { console.warn("[" + req.params.shortName + "] Error file name is wrong or file does not exist"); diff --git a/backend/sys_stats.js b/backend/sys_stats.js index f4630a4..ad1cb27 100644 --- a/backend/sys_stats.js +++ b/backend/sys_stats.js @@ -10,10 +10,7 @@ var spots = (24 * 60) / timePeriod; // the number of spots needed to keep track async function updateActiveSystems() { - // Go through all of the Systems - - for await (let item of System.find()) { // go through all the systems // if you have recieved some calls during that last period, make the system active diff --git a/mongo/Dockerfile b/mongo/Dockerfile index f8dc01a..9948f3c 100644 --- a/mongo/Dockerfile +++ b/mongo/Dockerfile @@ -2,7 +2,7 @@ # # docker build -t mongo . -FROM mongo:5-focal +FROM mongo:7-jammy MAINTAINER Luke Berndt