From 41f4ca88f8710f51e953f6d08c5a399caaf59c7e Mon Sep 17 00:00:00 2001 From: kimjb Date: Sat, 23 May 2026 18:01:14 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20otel=20collector=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.prod.yml | 2 +- monitoring/otel-collector-config.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 322743e..1924d02 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -136,7 +136,7 @@ services: - catchtable-net otel-collector: - image: otel/opentelemetry-collector-contrib:0.115.0 + image: otel/opentelemetry-collector-contrib:0.152.1 container_name: catchtable-otel-collector volumes: - ./monitoring/otel-collector-config.yml:/etc/otelcol-contrib/config.yaml:ro diff --git a/monitoring/otel-collector-config.yml b/monitoring/otel-collector-config.yml index 48f8f89..5538a54 100644 --- a/monitoring/otel-collector-config.yml +++ b/monitoring/otel-collector-config.yml @@ -5,15 +5,15 @@ receivers: endpoint: 0.0.0.0:4317 processors: - # OTel Semantic Conventions v1.23.0 이후 속성명 변경 (http.target → url.path 등) 호환 위해 - # coalesce(??)로 구버전·신버전 속성 둘 다 시도. + # OTel Java Agent 2.x는 새 Semantic Conventions(url.path, http.response.status_code) 사용. + # error_mode: ignore로 attribute 누락 시 안전 처리. filter/drop_noise: error_mode: ignore traces: span: - - 'IsMatch(attributes["http.target"] ?? attributes["url.path"] ?? "", "^/actuator.*")' - - 'IsMatch(attributes["http.target"] ?? attributes["url.path"] ?? "", "^/favicon.*")' - - '(attributes["http.status_code"] ?? attributes["http.response.status_code"]) == 404 and not IsMatch(attributes["http.target"] ?? attributes["url.path"] ?? "", "^/(api|swagger-ui|api-docs).*")' + - '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).*")' batch: timeout: 5s