Skip to content

Commit d23d194

Browse files
paper2claude
andcommitted
Add configuration files for development and testing
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 <noreply@anthropic.com>
1 parent 507ad3f commit d23d194

2 files changed

Lines changed: 70 additions & 3 deletions

File tree

.claude/settings.local.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,25 @@
88
"Bash(npm run format:write:*)",
99
"WebFetch(domain:github.com)",
1010
"Bash(git checkout:*)",
11-
"Bash(git push:*)"
11+
"Bash(git push:*)",
12+
"Bash(git add:*)",
13+
"Bash(git commit:*)",
14+
"Bash(gh pr create:*)",
15+
"Bash(npm test)",
16+
"Bash(npm test:*)",
17+
"Bash(rg:*)",
18+
"Bash(npm run lint:*)",
19+
"Bash(npx vitest:*)",
20+
"WebFetch(domain:stackoverflow.com)",
21+
"Bash(find:*)",
22+
"Bash(mkdir:*)",
23+
"WebFetch(domain:hub.docker.com)",
24+
"Bash(ls:*)",
25+
"Bash(mv:*)",
26+
"Bash(grep:*)"
1227
],
13-
"deny": []
14-
}
28+
"deny": [],
29+
"defaultMode": "acceptEdits"
30+
},
31+
"preferredNotifChannel": "terminal_bell"
1532
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# OpenTelemetry Collector Configuration for CI Testing
2+
receivers:
3+
# OTLP receiver accepts metrics and traces via gRPC and HTTP protocols
4+
otlp:
5+
protocols:
6+
http:
7+
endpoint: 0.0.0.0:4318
8+
9+
exporters:
10+
debug:
11+
verbosity: detailed
12+
sampling_initial: 2
13+
sampling_thereafter: 500
14+
15+
# File exporter for traces only
16+
file/traces:
17+
path: /collector-logs/traces.json
18+
format: json
19+
20+
# File exporter for metrics only
21+
file/metrics:
22+
path: /collector-logs/metrics.json
23+
format: json
24+
25+
extensions:
26+
# Health check extension to monitor collector's health status for CI
27+
health_check:
28+
endpoint: 0.0.0.0:13133
29+
30+
service:
31+
# Telemetry configuration for collector's own logs (internal logging)
32+
telemetry:
33+
logs:
34+
level: debug
35+
encoding: json
36+
output_paths: ['/collector-logs/collector-logs.json']
37+
38+
# Enable extensions
39+
extensions: [health_check]
40+
41+
# Processing pipelines define data flow from receivers through processors to exporters
42+
pipelines:
43+
traces:
44+
receivers: [otlp]
45+
processors: []
46+
exporters: [debug, file/traces]
47+
metrics:
48+
receivers: [otlp]
49+
processors: []
50+
exporters: [debug, file/metrics]

0 commit comments

Comments
 (0)