Skip to content

Fix: otel collector 버전 수정 - #82

Merged
jaebeom79 merged 1 commit into
mainfrom
develop
May 23, 2026
Merged

Fix: otel collector 버전 수정#82
jaebeom79 merged 1 commit into
mainfrom
develop

Conversation

@jaebeom79

Copy link
Copy Markdown
Contributor

📢 기능 설명

필요시 실행결과 스크린샷 첨부

연결된 issue

연결된 issue를 자동을 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #{이슈넘버}

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?

@jaebeom79
jaebeom79 merged commit 5c53a4a into main May 23, 2026
1 check passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the OpenTelemetry Collector image version and migrates the filtering configuration to use the new Semantic Conventions. Review feedback identified an invalid image version that needs correction and a potential runtime error in the OTTL filtering logic due to missing attributes, suggesting the use of default values to prevent filter failures.

Comment thread docker-compose.prod.yml

otel-collector:
image: otel/opentelemetry-collector-contrib:0.115.0
image: otel/opentelemetry-collector-contrib:0.152.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

otel/opentelemetry-collector-contrib:0.152.1 이미지는 공식 Docker Hub 레포지토리에서 확인되지 않는 버전입니다. 현재 최신 안정 버전은 0.118.0 부근이며, 기존 0.115.0에서 업데이트를 의도하셨다면 버전을 다시 확인해 주시기 바랍니다. 잘못된 버전 설정은 배포 시 이미지 풀(pull) 실패로 인해 컨테이너가 실행되지 않는 원인이 됩니다.

    image: otel/opentelemetry-collector-contrib:0.118.0

Comment on lines +14 to +16
- 'IsMatch(attributes["url.path"], "^/actuator.*")'
- 'IsMatch(attributes["url.path"], "^/favicon.*")'
- 'attributes["http.response.status_code"] == 404 and not IsMatch(attributes["url.path"], "^/(api|swagger-ui|api-docs).*")'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

OTTL(OpenTelemetry Transformation Language)의 IsMatch 함수는 첫 번째 인자가 nil일 경우 에러를 발생시킵니다. 모든 스팬이 url.path 속성을 가지고 있지는 않으므로(예: DB 호출이나 내부 작업 스팬), 속성이 누락된 경우를 대비해 ?? ""를 사용하여 빈 문자열을 기본값으로 제공하는 것이 안전합니다. error_mode: ignore 설정이 있더라도, 에러 발생 시 해당 필터 조건이 무시되어 결과적으로 노이즈 스팬이 필터링되지 않고 수집될 수 있습니다.

        - 'IsMatch(attributes["url.path"] ?? "", "^/actuator.*")'
        - 'IsMatch(attributes["url.path"] ?? "", "^/favicon.*")'
        - '(attributes["http.response.status_code"] ?? 0) == 404 and not IsMatch(attributes["url.path"] ?? "", "^/(api|swagger-ui|api-docs).*")'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant