Skip to content

fix(rag): name the Qdrant span server by host and port - #2705

Merged
dan-petty merged 3 commits into
mainfrom
fix/2459-qdrant-span-host-label
Oct 29, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/2459-qdrant-span-host-label

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The qdrant.upsert_points span took server.address from the whole configured Qdrant URL, with its userinfo and path, and it set no server.port. A password in qdrant.url went to every exported span.

The span now names its server by host and port only:

Change: openspec/changes/archive/2026-10-29-2459-qdrant-span-host-label/

Closes #2459

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.
@dan-petty dan-petty added scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/security Type security: a vulnerability or a leak labels Oct 29, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results (run on the branch, rebased on origin/main):

  • uv run devops ci test tests/test_rag_qdrant_span.py tests/test_rag_qdrant.py: 15 passed.
  • The five other RAG test files that call upsert_points: 64 passed.
  • devops docs generate --sync-readme gives no diff. The change touches no command, option or MCP tool.

Fail-to-pass (devops ci fail-to-pass --base origin/main):

ℹ Quality gate root: /workspaces/devops-cli/.data/agent/worktrees/w-2459
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[k8s-named] (AssertionError: assert ('k8s://devop...t:http', None) == ('qdrant.devops', None))
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[k8s] (AssertionError: assert ('k8s://devop...t:6333', None) == ('qdrant.devops', 6333))
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[user-only-default-port] (AssertionError: assert ('https://tok...le.com', None) == ('example.com', 443))
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[port] (AssertionError: assert ('http://exam...m:6333', None) == ('example.com', 6333))
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[k8s-userinfo] (AssertionError: assert ('k8s+https:/...secret', None) == ('qdrant.devops', 6333))
  failed on base: tests.test_rag_qdrant_span::test_upsert_span_names_the_server_by_host_and_port[userinfo-and-path] (AssertionError: assert ('http://user...x/path', None) == ('example.com', 6333))
6 failed on base (6 failed and 0 passed in tests/test_rag_qdrant_span.py; 0 errored).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 22:33
@dan-petty
dan-petty merged commit 57725c3 into main Oct 29, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2459-qdrant-span-host-label branch October 29, 2026 22:34
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/security Type security: a vulnerability or a leak

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(rag): the Qdrant upsert span names its server by host and port, never by the full URL with its userinfo

1 participant