fix: pass provider name to interceptors instead of hardcoding it#238
Merged
ssncferreira merged 2 commits intomainfrom Mar 31, 2026
Merged
fix: pass provider name to interceptors instead of hardcoding it#238ssncferreira merged 2 commits intomainfrom
ssncferreira merged 2 commits intomainfrom
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 30, 2026
15350e0 to
4a69340
Compare
pawbana
reviewed
Mar 30, 2026
4a69340 to
4027b0c
Compare
2c8fad4 to
85648f5
Compare
dannykopping
approved these changes
Mar 31, 2026
pawbana
approved these changes
Mar 31, 2026
Contributor
Author
Merge activity
|
40bebf4 to
3f96e4c
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 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.

Problem
Interceptors hardcode the provider name for API dump and trace attributes. The
chatcompletionsandresponsesinterceptors always used "openai", and the messages interceptor always used "anthropic". For Copilot, since it uses the OpenAI interceptor, this meant that requests were dumped to theopenai/directory and traced asprovider=openaiinstead ofcopilot.Changes
providerNameparameter to all interceptor constructorsp.Name()when constructing interceptorscopilot/directoryRelated to: #152
Disclaimer: initially produced by Claude Opus 4.6, heavily modified and reviewed by @ssncferreira .