ClientSnapshot::server_port() returns 443 for http:// URLs without port
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- observability-sre
Research direction
Start in src/gax-internal/src/observability/client_signals/recorder.rs at ClientSnapshot::server_port(), focusing on how the endpoint URI scheme is handled when no port is explicit. Verify the reported value for HTTP and HTTPS endpoints, then add or update coverage for the HTTP case and run the relevant Rust tests. Done means HTTP defaults to 80 while HTTPS retains 443.
Written by the indexing model from the issue text.
Description
Unconfirmed. This is the result of a search with Claude, may be a false positive.
In src/gax-internal/src/observability/client_signals/recorder.rs, server_port() resolves the server port attribute:
If the endpoint URI does not include an explicit port, it falls back unconditionally to HTTPS_PORT (443). For plain HTTP endpoints (e.g. local emulators or HTTP proxies with scheme http://), the port is reported as 443 instead of 80.
- Dominant language
- Rust
- Stars
- 956
- Forks
- 144
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 260
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/google-cloud-rust
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
googleapis/google-cloud-rust#6714 ·
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
googleapis/google-cloud-rust#6713 ·
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
googleapis/google-cloud-rust#6712 ·
-
type: bug
Difficulty 2/5 Half a day Newbie friendliness 75/100
googleapis/google-cloud-rust#6710 ·
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
googleapis/google-cloud-rust#6707 ·
All issues in googleapis/google-cloud-rust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100