refactor(server): telemetry (#13588)

refactor: telemetry
This commit is contained in:
Jason Rasmussen
2024-10-21 19:52:30 -04:00
committed by GitHub
parent 16f2364e93
commit e6a666f1d3
45 changed files with 143 additions and 202 deletions

View File

@@ -12,11 +12,9 @@ import {
ModelTask,
ModelType,
} from 'src/interfaces/machine-learning.interface';
import { Instrumentation } from 'src/utils/instrumentation';
const errorPrefix = 'Machine learning request';
@Instrumentation()
@Injectable()
export class MachineLearningRepository implements IMachineLearningRepository {
private async predict<T>(url: string, payload: ModelPayload, config: MachineLearningRequest): Promise<T> {