Skip to content

Conversation

@jdchawla29
Copy link
Collaborator

@jdchawla29 jdchawla29 commented Jan 4, 2026

Makes request for response agent without the trace-id header as it is not an agent step, instead uses instrumentation to emit a custom span.
Fixes HUD-546


Note

Instrument and header handling updates

  • Instruments ResponseAgent.determine_response with @instrument(category="agent", name="response_agent", internal_type="user-message") to emit a custom span
  • Sends chat completion with extra_headers={"Trace-Id": ""} so this request does not carry a trace id
  • Updates HTTP instrumentation in hud/eval/instrument.py to add trace headers only if not already present (case-insensitive) for both httpx and aiohttp
  • Extends hud.telemetry.instrument to accept internal_type and include it in emitted spans

Written by Cursor Bugbot for commit 8c2966a. This will update automatically on new commits. Configure here.

@jdchawla29 jdchawla29 requested a review from lorenss-m January 4, 2026 13:43
@lorenss-m lorenss-m merged commit acc2974 into main Jan 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants