Skip to main content

fault-flag

Adds injectable faults to the application, which can be controlled using environment variables.

설치로 이동

소스 정보

저장소
DataDog/dpn-bank-of-anthos
최근 소스 활동
2026년 5월 8일 04:10
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
fault-flag
description
Adds injectable faults to the application, which can be controlled using environment variables.
This is a demo application used to demonstrate Datadog's observability capabilities. Therefore, it needs to exhibit faults which users can identify in Datadog. For example: high resource usage, errors, latency, etc. To implement a fault, we need to do the following: - Add environment variables which can be used to activate / configure the fault. All faults are "off" by default and the code will need an environment variable set to true in order to execute the faulty behavior. In some cases, there may be additional environment variables to further control the fault behavior, such as setting an approximate length of time for latency. - Implement the actual fault in the code, with a switch controlled by the environment variable so that the code still operated normally when the fault is "off". - Add documentation to a file at the service level called FAULTS.md documenting the environment variables and the fault behavior. Note that faults should be silent in terms of logging. We want it to look like a genuine application issue, not something manufactured. So, the fault code should not emit logs UNLESS the specific fault itself calls for it. Implement a fault based upon the following concept: $ARGUMENTS[0]
GitHub에서 보기