Skip to content

infra: drop OTel collector container — backend hosts OTLP directly (HOL-21) - #104

Merged
BrewingCoder merged 1 commit into
mainfrom
issue-21-drop-collector
May 9, 2026
Merged

infra: drop OTel collector container — backend hosts OTLP directly (HOL-21)#104
BrewingCoder merged 1 commit into
mainfrom
issue-21-drop-collector

Conversation

@BrewingCoder

Copy link
Copy Markdown
Owner

Replaces #100 (auto-closed when its predecessor's base branch was deleted during the LEAN-stack merge train).

Summary

Drops the OTel collector container from the hobby compose. Backend now hosts the OTLP receiver directly at /otel/v1/{logs,traces,metrics}. SDKs target http://backend:8082/otel.

Closes HOL-21.

🤖 Generated with Claude Code

…OL-21)

The OTel collector container was a SaaS-shaped multi-protocol relay
(fluentforward, syslog, AWS Firehose CloudWatch, OTLP gRPC/HTTP/HTTPS,
TCP log) that for self-hosted deployments only delivers OTLP HTTP value
the backend already provides natively.

The .NET backend has a complete OTLP HTTP receiver at /otel/v1/{logs,
traces,metrics}: JSON + protobuf, gzip + snappy decompression, CORS-
enabled, project-id resolution from resource attributes. Self-
instrumentation already targets it directly. SDKs just needed their
default OTLP endpoint pointed at it.

Removed:
- compose.yml + compose.hobby-dotnet.yml: collector service
- infra/docker/{collector.Dockerfile, collector.yml, configure-collector.sh}
- start-infra.sh: collector from SERVICES list
- .env.example: OTEL_COLLECTOR_* image vars
- env.sh: collector hostname rewrites

Updated SDK + frontend defaults from :4318 (collector) to :8082/otel
(backend):
- sdk/highlight-run/src/index.tsx: otlpEndpoint default
- compose.hobby-dotnet.yml + compose.dev-frontend.yml: REACT_APP_OTLP_ENDPOINT
- env.sh: OTLP_DOGFOOD_ENDPOINT, OTLP_ENDPOINT

Verified: docker compose ps now shows 7 HoldFast containers (was 9
before HOL-19+HOL-21). Smoke test passes end-to-end.

Subtask of HOL-17. Closes HOL-21.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@BrewingCoder
BrewingCoder force-pushed the issue-21-drop-collector branch from 874db04 to 9e89211 Compare May 9, 2026 14:41
@BrewingCoder
BrewingCoder merged commit 43894bb into main May 9, 2026
4 of 5 checks passed
@BrewingCoder
BrewingCoder deleted the issue-21-drop-collector branch May 9, 2026 14:41
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