Repository navigation
feat: trace chatd provider attempts with model and effort - #28971
Closed
jscottmiller wants to merge 1 commit into
Closed
jscottmiller wants to merge 1 commit into
jscottmiller wants to merge 1 commit into
Conversation
This was referenced Sep 4, 2026
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 9, 2026 23:19
ffc1233 to
cf79f38
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 11, 2026 02:25
cf79f38 to
8b252aa
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 11, 2026 19:17
8b252aa to
2653138
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 14, 2026 20:16
2653138 to
c7c1ea8
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 14, 2026 22:06
c7c1ea8 to
70e3aa1
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 15, 2026 21:39
70e3aa1 to
5e03cdf
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 16, 2026 03:12
5e03cdf to
0aa105f
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 17, 2026 16:55
0aa105f to
bcca128
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 17, 2026 20:31
bcca128 to
cdfb66c
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 17, 2026 21:26
cdfb66c to
34c4cf8
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
2 times, most recently
from
September 21, 2026 22:52
4a1c32a to
97f7512
Compare
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 23, 2026 01:37
97f7512 to
b5a1e5a
Compare
Wrap the AI Bridge transport in stageSpanRoundTripper so every HTTP round trip to a provider is a provider_attempt stage with its own span, labeled with the HTTP method, host, and status code. resolveModelCall resolves the effective reasoning effort once and carries it with the configured provider type and the model name as a StageModel through modelBuildOptions, so the transport labels attempts the way the call options were sent. The Server gains the StageTracer and a TracerProvider config field that coderd wires from its own tracer provider.
jscottmiller
force-pushed
the
scott/chatd-stages/4-provider-attempts
branch
from
September 23, 2026 02:14
b5a1e5a to
9634c4a
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Superseded by #29770. Closed in favor of the reduced stack #29773.
Wraps the provider HTTP transport in
stageSpanRoundTripper, which emits oneprovider_attemptstage per round trip, so retries each get a span. The span closes on response headers; a status >= 400 marks it errored without changing what the client sees.resolveModelCallresolves the provider type, model, and effective reasoning effort once and threads them to the transport asmodelBuildOptions.StageModel, so span attributes and theprovider_type/modellabels match the call.provider_typeis read fromai_providers.typedirectly rather than the normalized provider hint, so types outside the fantasy set (copilot) keep their configured name. Effort stays a span attribute only.Servergains thestagestracer and aTracerProvideroption (nil disables spans, not metrics), wired fromcoderd.🤖 This PR was generated by Coder Agents on behalf of @jscottmiller.