mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
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
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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user