open-code-review/internal
paker 589a7249f5
fix(telemetry): support http:// scheme in otlp_endpoint for insecure gRPC (#280)
* fix(telemetry): support http:// scheme in otlp_endpoint for insecure gRPC

Parse the otlp_endpoint scheme before creating the OTLP gRPC exporters:
- http://host:port  -> strip scheme, call WithInsecure() (plaintext gRPC)
- https://host:port -> strip scheme, keep default TLS
- host:port          -> unchanged, keep default TLS (backward compatible)

Scheme matching is case-insensitive. Applies to both the trace and
metric exporters in initOTLPProviders.

Fixes #268

* fix(telemetry): trim trailing slash from otlp_endpoint after scheme strip

Addresses review feedback: a URL-style endpoint with a trailing slash
(e.g. "http://localhost:4317/") left the trailing "/" in the address
passed to WithEndpoint(), which expects a bare host:port with no path
and could cause connection failures.
2026-07-03 11:26:03 +08:00
..
agent fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
config ci: add 80% statement coverage threshold check 2026-06-27 11:13:22 +08:00
diff test(diff): add tests for gitignore pattern matching and mode getters 2026-07-01 14:27:07 +08:00
gitcmd test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
llm feat(llm): add z-ai-coding provider for GLM Coding Plan endpoint (#258) 2026-07-02 19:23:17 +08:00
llmloop fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
mcp feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
model test: add unit tests for output_helpers, config, model, stdout, and telemetry packages 2026-06-26 23:26:49 +08:00
pathutil test: improve coverage for template and pathutil packages 2026-06-27 00:22:30 +08:00
release fix(build): improve Windows support based on PR #13 review feedback 2026-06-02 22:37:27 +08:00
scan fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
session fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
stdout test: add unit tests for output_helpers, config, model, stdout, and telemetry packages 2026-06-26 23:26:49 +08:00
suggestdiff test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
telemetry fix(telemetry): support http:// scheme in otlp_endpoint for insecure gRPC (#280) 2026-07-03 11:26:03 +08:00
tool feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
viewer fix: skip permission-based tests when running as root in CI 2026-06-27 00:42:41 +08:00