feat: Add User-Agent attribution for Databricks Partner telemetry#42
Open
prasadkona wants to merge 1 commit intodatabrickslabs:mainfrom
Open
feat: Add User-Agent attribution for Databricks Partner telemetry#42prasadkona wants to merge 1 commit intodatabrickslabs:mainfrom
prasadkona wants to merge 1 commit intodatabrickslabs:mainfrom
Conversation
Add centralized User-Agent configuration following the Databricks Partner Well-Architected Framework guidelines for API attribution. Changes: - Create src/utils/telemetry.py with User-Agent helper functions - Add Kasal_jobs User-Agent to Databricks Jobs API calls - Add Kasal_genie User-Agent to Genie API calls - Add Kasal_vectorsearch User-Agent to Vector Search API calls - Add Kasal User-Agent to UC Volumes (SDK + REST fallback) - Add Kasal User-Agent to SQL Warehouse connection tests - Add Kasal User-Agent to MLflow SDK calls - Add Kasal user_agent to LiteLLM for Databricks models - Add Kasal application_name to Lakebase PostgreSQL connections User-Agent Format: <isv-name_product-name>/<product-version> Examples: Kasal/0.1.0, Kasal_jobs/0.1.0, Kasal_genie/0.1.0
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.
Summary
Add centralized User-Agent configuration following the Databricks Partner Well-Architected Framework guidelines for API attribution. This enables Databricks to track Kasal usage across all API integrations.
Changes
New File
src/backend/src/utils/telemetry.py- Centralized User-Agent module with helper functionsModified Files
databricks_jobs_tool.pyKasal_jobs/0.1.0genie_repository.pyKasal_genie/0.1.0genie_tool.pyKasal_genie/0.1.0databricks_vector_index_repository.pyKasal_vectorsearch/0.1.0databricks_volume_repository.pyKasal/0.1.0databricks_service.pyKasal/0.1.0mlflow_service.pyKasal/0.1.0llm_manager.pyKasallakebase_session.pyKasal/0.1.0User-Agent Format
Following the Databricks Partner Well-Architected Framework:
Examples:
Kasal/0.1.0- Base productKasal_jobs/0.1.0- Databricks Jobs integrationKasal_genie/0.1.0- Genie integrationKasal_vectorsearch/0.1.0- Vector Search integrationTesting