@yolo-croket-dev/core 1.7.4-datadog.4 → 1.7.4-datadog.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,11 +197,16 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
197
197
|
if (process.env.DD_AGENT_HOST && process.env.DD_AGENT_HOST.startsWith('datadog-agent-agent')) {
|
|
198
198
|
const span = dd_trace_1.default.scope().active();
|
|
199
199
|
if (span) {
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
span.setTag('error', {
|
|
201
|
+
message: errMsg,
|
|
202
|
+
stack: err.stack ? err.stack : null,
|
|
203
|
+
type: 'RpcExceptionsHandler',
|
|
204
|
+
});
|
|
205
|
+
span.finish();
|
|
206
|
+
msaLogger.debug('Active span found', { traceId: 'ACTIVE_SPAN_FOUND' }, { err: { message: errMsg, stack: err.stack ? err.stack : null }, DD_AGENT_HOST: process.env.DD_AGENT_HOST });
|
|
202
207
|
}
|
|
203
208
|
else {
|
|
204
|
-
msaLogger.error('No active span found', { traceId: 'NO_ACTIVE_SPAN' }
|
|
209
|
+
msaLogger.error('No active span found', { traceId: 'NO_ACTIVE_SPAN' });
|
|
205
210
|
}
|
|
206
211
|
}
|
|
207
212
|
/** 파일 객체 처리 */
|