Skip to content

Conversation

@fjakobs
Copy link
Collaborator

@fjakobs fjakobs commented Dec 9, 2025

Summary

  • Configure AppKit version in Databricks client user agent
  • Add dev mode flag via userAgentExtra

Implementation

  • Import version from package.json
  • Create getClientOptions() helper returning ClientOptions:
    • product: "appkit"
    • productVersion: "0.0.2"
    • userAgentExtra: { mode: "dev" } (dev mode only)
  • Apply to both service and user Databricks clients

🤖 Generated with Claude Code

@fjakobs fjakobs requested review from a team, MarioCadenas and ditadi December 9, 2025 12:11
@fjakobs fjakobs force-pushed the feat/databricks-client-user-agent branch from 64368cc to 81e6a87 Compare December 9, 2025 12:13
Copy link
Member

@pkosiec pkosiec left a 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" } }),
Copy link
Member

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?

Suggested change
...(isDev && { userAgentExtra: { mode: "dev" } }),
...(isDev && { userAgentExtra: { mode: process.env.NODE_ENV } }),

Copy link
Collaborator Author

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

Copy link
Member

@pkosiec pkosiec Dec 9, 2025

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?

@fjakobs fjakobs force-pushed the feat/databricks-client-user-agent branch 2 times, most recently from b14f568 to 0cbc3e1 Compare December 9, 2025 15:38
@fjakobs fjakobs enabled auto-merge (squash) December 9, 2025 15:38
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]>
@fjakobs fjakobs force-pushed the feat/databricks-client-user-agent branch from 6630b80 to dbb431e Compare December 9, 2025 16:26
@fjakobs fjakobs merged commit 5560cba into main Dec 16, 2025
3 checks passed
@MarioCadenas MarioCadenas deleted the feat/databricks-client-user-agent branch December 19, 2025 17:44
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.

4 participants