Steel / api /src /telemetry /noop.ts
supernovagateway's picture
Upload folder using huggingface_hub
fb38ec5 verified
import type { Span } from "@opentelemetry/api";
export const noopSpan: Span = {
spanContext() {
return {
traceId: "",
spanId: "",
traceFlags: 0,
isRemote: false,
};
},
setAttribute() {
return this;
},
setAttributes() {
return this;
},
addEvent() {
return this;
},
addLink() {
return this;
},
addLinks() {
return this;
},
setStatus() {
return this;
},
updateName() {
return this;
},
end() {},
isRecording() {
return false;
},
recordException() {},
};