CI/CD
참고:
출처: 문서
본문
-
지속적 통합 및 지속적 배포(CI/CD)
-
CI/CD 파이프라인
-
CI/CD 파이프라인 실행
-
CI/CD 워커
-
버전 관리 시스템(VCS)
-
VCS 저장소
-
VCS 참조(reference)
참고:
- CI/CD용 트레이스 시맨틱 컨벤션
지속적 통합 및 지속적 배포(CI/CD)
CI/CD 파이프라인
Status:
type: cicd.pipeline
Description: 파이프라인은 소프트웨어 팀이 코드를 전달하도록 돕는 일련의 자동화된 단계예요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | cicd.pipeline.name | | Required | string | The human readable name of the pipeline within a CI/CD system. | Build and Test; Lint; Deploy Go Project; deploy_to_environment
CI/CD 파이프라인 실행
파이프라인 실행의 모든 스팬에 대해 다음 속성을 효율적으로 설정하려면, 이를 다음과 같은 리소스로 정의해야 해요.
이 리소스는 파이프라인 실행마다 고유하므로, 해당 트레이서를 통해 내보내는 모든 스팬의 리소스를 구성하려면 파이프라인 실행마다 별도의 TracerProvider를 인스턴스화해야 해요.
CI/CD 파이프라인 실행 리소스를 메트릭과 함께 사용하면 본질적으로 카디널리티가 높아져 일부 메트릭 저장 백엔드에서 비용이 늘어날 수 있어요. 따라서 메트릭에 CI/CD 파이프라인 실행 리소스를 사용하는 것은 반드시 옵트인이어야 해요.
type: cicd.pipeline.run
Description: A pipeline run is a singular execution of a given pipeline’s tasks.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | cicd.pipeline.run.id | | Required | string | The unique identifier of a pipeline run within a CI/CD system. | 120912
| Description | cicd.pipeline.run.url.full | | Recommended | string | The URL of the pipeline run, providing the complete address in order to locate and identify the pipeline run. | https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075
CI/CD 워커
type: cicd.worker
Description: CI/CD 워커는 작업(예: 파이프라인 태스크 실행 또는 동기화 수행)을 수행하는 CI/CD 시스템의 구성 요소예요.
하나의 파이프라인 실행은 여러 워커에 분산될 수 있어요. 워커와 연결된 모든 OpenTelemetry 신호는 해당 작업을 수행한 워커와 연결되어야 해요.
예를 들어, 파이프라인 실행에 여러 워커가 관여하면, 각 태스크 실행을 수행한 워커에 해당하는 서로 다른 cicd.worker 리소스를 태스크 실행 스팬이 참조할 수 있어요. 반면 파이프라인 실행의 부모 스팬은 CI/CD 컨트롤러를 cicd.worker 리소스로 참조할 수 있어요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | cicd.worker.id | | Required | string | The unique identifier of a worker within a CI/CD system. | abc123; 10.0.1.2; controller
| Description | cicd.worker.name | | Recommended | string | The name of a worker within a CI/CD system. | agent-abc; controller; Ubuntu LTS
| Description | cicd.worker.url.full | | Recommended If available | string | The URL of the worker, providing the complete address in order to locate and identify the worker. | https://cicd.example.org/worker/abc123
버전 관리 시스템(VCS)
VCS 저장소
type: vcs.repository
Description: 버전 관리 시스템의 저장소예요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | vcs.repository.url.full | | Required | string | The canonical URL of the repository providing the complete HTTP(S) address in order to locate and identify the repository through a browser. [1] | https://github.com/opentelemetry/open-telemetry-collector-contrib; https://gitlab.com/my-org/my-project/my-projects-project/repo
| Description | vcs.repository.name | | Recommended | string | The human readable name of the repository. It SHOULD NOT include any additional identifier like Group/SubGroup in GitLab or organization in GitHub. [2] | semantic-conventions; my-cool-repo
[1] vcs.repository.url.full: In Git Version Control Systems, the canonical URL SHOULD NOT include
.git 확장자를 말해요.
[2] vcs.repository.name: Due to it only being the name, it can clash with forks of the same
여러 조직이나 그룹에 걸쳐 텔레메트리를 수집할 때 저장소를
동일한 백엔드에서 사용해요.
VCS 참조(reference)
type: vcs.ref
Description: 버전 관리 시스템의 특정 버전에 대한 참조예요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | vcs.ref.head.revision | | Required | string | The revision, literally revised version, The revision most often refers to a commit object in Git, or a revision number in SVN. [1] | 9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc; main; 123; HEAD
| Description | vcs.ref.head.name | | Recommended | string | The name of the reference such as branch or tag in the repository. [2] | my-feature-branch; tag-1-test
| Description | vcs.ref.type | | Recommended | string | The type of the reference in the repository. | branch; tag
[1] vcs.ref.head.revision: head refers to where you are right now; the current reference at a
주어진 시점을 말해요. 리비전은 전체 해시 값(용어집 참고)일 수 있어요.
용어집을 참고하세요,
저장소 안의 ref에 대한 기록된 변경 사항 중, 커밋 커밋 객체를 가리키는
변경 사항을 말해요. 반드시 해시일 필요는 없고,
단순히 리비전을 정의할 수도 있어요.
리비전 번호는
단조 증가하는 정수예요. ref.head.name과 동일한 경우에도
여전히 포함해야 해요.
VCS 시스템과 상황별 맥락에 따라 어떤 값을 리비전으로 설정할지는
구현자가 결정할 몫이에요.
[2] vcs.ref.head.name: head refers to where you are right now; the current reference at a
주어진 시점을 말해요.
vcs.ref.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
| Value | Description | Stability
| branch | branch |
| tag | tag |