-
Notifications
You must be signed in to change notification settings - Fork 3
Labels
Description
We are using an ungodly amount of any everywhere and this makes it either slightly dodgy to change things or requires extra verification.
Suggestion to improve things from the outside in:
- Add vendored types for all of the libraries we wrap and immediately typecast the input inside the wrapper function body so we can pass around stuff in a type-safe way.
- Find a way to properly to type our plugin system for auto-instrumentation so that we can assume we know what shapes we're getting when listening to channels.
Vendored types:
-
wrapOpenAIref: Add vendored types for OpenAI sdk instrumentation #1514 -
wrapAnthropicref: Add vendored types for anthropic instrumentation #1503 -
wrapGoogleGenAIref: Add vendored types for google genai instrumentation #1506 -
wrapClaudeAgentSDKref: Add vendored types for claude agent sdk instrumentation #1505 -
wrapAISDKref: Add vendored types for ai sdk instrumentation #1508
After that's done:
- Make Plugin System type safe ref: Properly type tracing channels #1517
Reactions are currently unavailable