clean: remove spans on deprecated calls
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run

This commit is contained in:
KernelDeimos
2024-12-11 16:52:14 -05:00
parent cbe15a42bd
commit 4ff5bec40e
@@ -63,27 +63,6 @@ class FilesystemService extends BaseService {
.obtain('fs.fsentry:path')
.exec(entry.uuid);
});
// Decorate methods with otel span
// TODO: use putility class feature for method decorators
const span_methods = [
'write', 'mkdir', 'rm', 'mv', 'cp', 'read', 'stat',
'mkdir_2',
'update_child_paths',
];
for ( const method of span_methods ) {
const original_method = this[method];
this[method] = async (...args) => {
const tracer = services.get('traceService').tracer;
let result;
await tracer.startActiveSpan(`fs-svc:${method}`, async span => {
result = await original_method.call(this, ...args);
span.end();
});
return result;
}
}
}
async _init () {