Repository navigation
fix(rag): name the Qdrant span server by host and port - #2705
Merged
Merged
Conversation
Plans #2459 and adds the failing test of the span attributes.
The span took server.address from the whole configured URL, with its userinfo and path, and set no server.port. It now takes both from the httpx2 origin, and from the Service name and port of a k8s address.
Owner
Author
|
Test results (run on the branch, rebased on origin/main):
Fail-to-pass ( |
dan-petty
marked this pull request as ready for review
October 29, 2026 22:33
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.21.0](v0.20.0...v0.21.0) (2026-10-29) ### Features * **telemetry:** count the project items by release tag, not by milestone ([#2710](#2710)) ([253a97d](253a97d)) ### Bug Fixes * **ai:** the MCP benchmark tool takes no server URL ([#2707](#2707)) ([7f7f84b](7f7f84b)), closes [#2638](#2638) * **rag:** name the Qdrant span server by host and port ([#2705](#2705)) ([57725c3](57725c3)), closes [#2459](#2459) * **roadmap:** take a plan that a person merged as a Planned item ([#2718](#2718)) ([043463b](043463b)), closes [#2714](#2714) * **security:** pin tflint; remove dive and devops docker analyze-layers ([#2712](#2712)) ([244bafb](244bafb)) * **vault:** the MCP tool vault_status takes no address ([#2706](#2706)) ([68c226c](68c226c)), closes [#2639](#2639) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
qdrant.upsert_pointsspan tookserver.addressfrom the whole configured Qdrant URL, with its userinfo and path, and it set noserver.port. A password inqdrant.urlwent to every exported span.The span now names its server by host and port only:
httporhttpsURL gives the host and port of its httpx2 origin, with the default port of the scheme when the URL has none. This uses the helpers of fix(ai): replies carry their server as an httpx2 origin, so a password in an AI URL stays out of output, the spend ledger, metrics, spans and cache #1110 and fix(security): URL and host:port reads use the sending client's parser, so key trust, crawls, probes and settings act on the host actually dialled #1112 (origin_span_attributes,get_url_origin). No new parser.k8s://ork8s+https://Service address gives the in-cluster DNS name<service>.<namespace>asserver.address, read withparse_service_url.server.portis set only for a numeric port. The httpx2 origin of such an address is the namespace with no port, so the origin alone would name the wrong target.Change: openspec/changes/archive/2026-10-29-2459-qdrant-span-host-label/
Closes #2459