-
Notifications
You must be signed in to change notification settings - Fork 0
Configure Databricks client user agent #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
64368cc to
81e6a87
Compare
pkosiec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL at my small comment before merge. Thanks!
| return { | ||
| product: "appkit", | ||
| productVersion: version as ClientOptions["productVersion"], | ||
| ...(isDev && { userAgentExtra: { mode: "dev" } }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could also simply pass the NODE_ENV value directly, right? And attach that property for every request, also including prod for consistency?
| ...(isDev && { userAgentExtra: { mode: "dev" } }), | |
| ...(isDev && { userAgentExtra: { mode: process.env.NODE_ENV } }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will add too much noise to the logs. Customers can add anything in NODE_ENV
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but then why do we need the dev metadata then? just curious, why not production instead? prod is more important for us, right?
b14f568 to
0cbc3e1
Compare
Add AppKit version and dev mode flag to Databricks client user agent. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> Signed-off-by: Fabian Jakobs <[email protected]>
6630b80 to
dbb431e
Compare
Summary
Implementation
getClientOptions()helper returningClientOptions:product: "appkit"productVersion: "0.0.2"userAgentExtra: { mode: "dev" }(dev mode only)🤖 Generated with Claude Code