From d23d19465b1e75e7dd2a903da81bc14079a90e58 Mon Sep 17 00:00:00 2001 From: Yohei Kamitsukasa <35333687+paper2@users.noreply.github.com> Date: Sun, 29 Jun 2025 04:03:01 +0000 Subject: [PATCH] Add configuration files for development and testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit includes two essential configuration files: ## .claude/settings.local.json - Tool access permissions for Claude Code development - Allows npm, git, and web fetch operations - Sets default mode to accept edits for streamlined workflow ## .github/configs/otel-collector-config.yaml - OpenTelemetry collector configuration for CI testing - OTLP HTTP receiver on port 4318 - File exporters for traces and metrics validation - Health check endpoint for container readiness These configurations support the development workflow and enable comprehensive testing of the GitHub Action's telemetry output. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .claude/settings.local.json | 23 ++++++++-- .github/configs/otel-collector-config.yaml | 50 ++++++++++++++++++++++ 2 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 .github/configs/otel-collector-config.yaml diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 380f02c5..77facc60 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -8,8 +8,25 @@ "Bash(npm run format:write:*)", "WebFetch(domain:github.com)", "Bash(git checkout:*)", - "Bash(git push:*)" + "Bash(git push:*)", + "Bash(git add:*)", + "Bash(git commit:*)", + "Bash(gh pr create:*)", + "Bash(npm test)", + "Bash(npm test:*)", + "Bash(rg:*)", + "Bash(npm run lint:*)", + "Bash(npx vitest:*)", + "WebFetch(domain:stackoverflow.com)", + "Bash(find:*)", + "Bash(mkdir:*)", + "WebFetch(domain:hub.docker.com)", + "Bash(ls:*)", + "Bash(mv:*)", + "Bash(grep:*)" ], - "deny": [] - } + "deny": [], + "defaultMode": "acceptEdits" + }, + "preferredNotifChannel": "terminal_bell" } diff --git a/.github/configs/otel-collector-config.yaml b/.github/configs/otel-collector-config.yaml new file mode 100644 index 00000000..fedb52fe --- /dev/null +++ b/.github/configs/otel-collector-config.yaml @@ -0,0 +1,50 @@ +# OpenTelemetry Collector Configuration for CI Testing +receivers: + # OTLP receiver accepts metrics and traces via gRPC and HTTP protocols + otlp: + protocols: + http: + endpoint: 0.0.0.0:4318 + +exporters: + debug: + verbosity: detailed + sampling_initial: 2 + sampling_thereafter: 500 + + # File exporter for traces only + file/traces: + path: /collector-logs/traces.json + format: json + + # File exporter for metrics only + file/metrics: + path: /collector-logs/metrics.json + format: json + +extensions: + # Health check extension to monitor collector's health status for CI + health_check: + endpoint: 0.0.0.0:13133 + +service: + # Telemetry configuration for collector's own logs (internal logging) + telemetry: + logs: + level: debug + encoding: json + output_paths: ['/collector-logs/collector-logs.json'] + + # Enable extensions + extensions: [health_check] + + # Processing pipelines define data flow from receivers through processors to exporters + pipelines: + traces: + receivers: [otlp] + processors: [] + exporters: [debug, file/traces] + metrics: + receivers: [otlp] + processors: [] + exporters: [debug, file/metrics]