πŸš€ Socket Launch Week πŸš€ Day 3: Socket Acquires Coana.Learn More β†’
Socket
Sign inDemoInstall
Socket

@titicaca/ecs-dd-trace

Package Overview
Dependencies
Maintainers
57
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@titicaca/ecs-dd-trace

Dadadog trace library for Node.js services on ECS

4.0.0
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
57
Weekly downloads
Β 
Created
Source

ECS-DD-TRACE

ECS μ—μ„œλ§Œ μ‚¬μš©ν•  수 μžˆλŠ” Node.js Datadog Monitoring Library μž…λ‹ˆλ‹€.

μ§€μ›ν•˜λŠ” κΈ°λŠ₯은 APM μΈ‘μ •κ³Ό Metric μΈ‘μ •μž…λ‹ˆλ‹€.

Install

Dependency 에 μΆ”κ°€ν•΄μ£Όμ„Έμš”.

$ npm install @titicaca/ecs-dd-trace

APM

APM κΈ°λŠ₯은 node.js κ°€ μ‹œμž‘ν•  λ•Œ start script 에 λ„£μ–΄μ£Όλ©΄ μžλ™μœΌλ‘œ APM 을 μˆ˜μ§‘ν•©λ‹ˆλ‹€.

ENABLE_DD_APM ν™˜κ²½ λ³€μˆ˜μ— true λ₯Ό λ„£μ–΄μ€λ‹ˆλ‹€.

package.json 의 scripts λ₯Ό μˆ˜μ •ν•΄ μ€λ‹ˆλ‹€. --require @titicaca/ecs-dd-trace

{
  "scripts": {
    "start": "NODE_ENV=production node --require @titicaca/ecs-dd-trace dist"
  }
}

PREVENT_PARAMETERIZED_ROUTE_PATH

PREVENT_PARAMETERIZED_ROUTE_PATH ν™˜κ²½ λ³€μˆ˜μ— true λ₯Ό 넣어쀄 경우 λ™μž‘ν•©λ‹ˆλ‹€.

GET /users/{user_id} 와 같이 dynamic path routing API λ₯Ό μ‚¬μš©ν•  경우 Datadog APM μ—μ„œλŠ” ν†΅μΌλœ API둜 μ²˜λ¦¬ν•˜μ§€λ§Œ 이것을 λΆ„λ¦¬ν•˜μ—¬ 보여주고 싢은 μš”κ΅¬μ‚¬ν•­μ„ ν•΄κ²°ν•  λ•Œ μ‚¬μš©ν•©λ‹ˆλ‹€.

Metric

Metric 은 μ›ν•˜λŠ” μ§€ν‘œλ₯Ό 카운트 ν•  수 μžˆλŠ” κΈ°λŠ₯μž…λ‹ˆλ‹€.

ENABLE_DD_METRIC ν™˜κ²½ λ³€μˆ˜μ— true λ₯Ό λ„£μ–΄μ€λ‹ˆλ‹€.

μ‚¬μš©λ²•

const metricClient = await MetricClient.init()
await increaseMetricCount('campaign_api.test')

ν™˜κ²½ λ³€μˆ˜

ECS μ—μ„œ λ™μž‘ν•˜λŠ” λͺ¨λ“  μ»¨ν…Œμ΄λ„ˆμ—λŠ” ECS_CONTAINER_METADATA_URI_V4 ν™˜κ²½ λ³€μˆ˜κ°€ μžˆμŠ΅λ‹ˆλ‹€.

FAQs

Package last updated on 09 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts