MCPcopy Create free account
hub / github.com/apache/skywalking-nodejs / error

Function error

src/trace/span/Span.ts:152–162  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

150 }
151
152 error(error: Error): this {
153 if (error === this.lastError)
154 // don't store duplicate identical error twice
155 return this;
156
157 this.errored = true;
158 this.lastError = error;
159 this.log('Stack', error?.stack || '');
160
161 return this;
162 }
163
164 refer(ref: SegmentRef): this {
165 if (!this.refs.includes(ref)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected