Upgrade dd-trace, add APM tracing around key commands, fix tags should be attached to root spans (#3243)

This commit is contained in:
Tom Moor
2022-03-14 20:03:12 -07:00
committed by GitHub
parent f3705b4a22
commit 15cecf1e53
13 changed files with 176 additions and 119 deletions

View File

@@ -1,6 +1,7 @@
import invariant from "invariant";
import { Transaction } from "sequelize";
import { sequelize } from "@server/database/sequelize";
import { APM } from "@server/logging/tracing";
import {
User,
Document,
@@ -62,7 +63,7 @@ type Result = {
collectionChanged: boolean;
};
export default async function documentMover({
async function documentMover({
user,
document,
collectionId,
@@ -238,3 +239,5 @@ export default async function documentMover({
// we need to send all updated models back to the client
return result;
}
export default APM.traceFunction({})(documentMover);