Skip to content

fix(service): deduplicate server span and exclude probe paths - #7008

Merged
dan-petty merged 1 commit into
mainfrom
fix/5003-second-server-span-per-request
Nov 24, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5003-second-server-span-per-request

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #5003: the Service creates a second server span for each request. The hand-written _service_trace_middleware in src/devops_cli/server/service.py creates one server span and skips probe paths. FastAPI native OpenTelemetry instrumentation creates a second server span for each request, including /healthz, /readyz, and /metrics. These duplicate spans fill the trace search and the Tempo storage.

Closes #5003

Change: openspec/changes/archive/2026-11-24-5003-second-server-span-per-request/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/service The long-running devops Service and its lanes labels Nov 24, 2026
@dan-petty
dan-petty force-pushed the fix/5003-second-server-span-per-request branch from 0beeb14 to e455a63 Compare November 24, 2026 17:19
@dan-petty
dan-petty force-pushed the fix/5003-second-server-span-per-request branch from e455a63 to 0e3f841 Compare November 24, 2026 17:30
@dan-petty
dan-petty marked this pull request as ready for review November 24, 2026 17:37
@dan-petty
dan-petty merged commit 169198e into main Nov 24, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/5003-second-server-span-per-request branch November 24, 2026 18:04
dan-petty-release Bot added a commit that referenced this pull request Nov 24, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.210.1](v0.210.0...v0.210.1)
(2026-11-24)


### Bug Fixes

* **service:** deduplicate server span and exclude probe paths
([#7008](#7008))
([169198e](169198e))

---
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/service The long-running devops Service and its lanes type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(service): the Service makes a second server span per request

1 participant