MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / tryProcessError

Function tryProcessError

out/cli.cjs:76597–76610  ·  view source on GitHub ↗
(span, error)

Source from the content-addressed store, hash-verified

76595 request3.headers.set(key, value);
76596 }
76597 return { span, tracingContext: updatedOptions.tracingOptions.tracingContext };
76598 } catch (e3) {
76599 logger.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e3)}`);
76600 return void 0;
76601 }
76602}
76603function tryProcessError(span, error) {
76604 try {
76605 span.setStatus({
76606 status: "error",
76607 error: isError(error) ? error : void 0
76608 });
76609 if (isRestError(error) && error.statusCode) {
76610 span.setAttribute("http.status_code", error.statusCode);
76611 }
76612 span.end();
76613 } catch (e3) {

Callers 1

sendRequestFunction · 0.85

Calls 4

isErrorFunction · 0.85
isRestErrorFunction · 0.85
getErrorMessageFunction · 0.85
endMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…