Add tracing to TextHelper, DocumentConverter

This commit is contained in:
Tom Moor
2024-02-07 22:09:21 -05:00
parent 140e685d67
commit 8e66354cce
2 changed files with 4 additions and 0 deletions

View File

@@ -9,11 +9,13 @@ import {
unicodeCLDRtoBCP47,
} from "@shared/utils/date";
import attachmentCreator from "@server/commands/attachmentCreator";
import { trace } from "@server/logging/tracing";
import { Attachment, User } from "@server/models";
import FileStorage from "@server/storage/files";
import parseAttachmentIds from "@server/utils/parseAttachmentIds";
import parseImages from "@server/utils/parseImages";
@trace()
export default class TextHelper {
/**
* Replaces template variables in the given text with the current date and time.

View File

@@ -2,8 +2,10 @@ import escapeRegExp from "lodash/escapeRegExp";
import { simpleParser } from "mailparser";
import mammoth from "mammoth";
import { FileImportError } from "@server/errors";
import { trace } from "@server/logging/tracing";
import turndownService from "@server/utils/turndown";
@trace()
export class DocumentConverter {
/**
* Convert an incoming file to markdown.