@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
- msaLogger.debug('Active span found', { traceId: 'ACTIVE_SPAN_FOUND' }, { span: JSON.stringify(span), err: { message: errMsg, stack: err.stack ? err.stack : null }, DD_AGENT_HOST: process.env.DD_AGENT_HOST });
201
- span.setTag('error', err);
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' }, { span: JSON.stringify(span) });
209
+ msaLogger.error('No active span found', { traceId: 'NO_ACTIVE_SPAN' });
205
210
  }
206
211
  }
207
212
  /** 파일 객체 처리 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.4-datadog.4",
3
+ "version": "1.7.4-datadog.6",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",