Skip to content

Conversation

@kesmit13
Copy link
Collaborator

No description provided.

kesmit13 and others added 2 commits August 12, 2025 14:53
- Add log_file, log_format, and log_level parameters to Application class
- Move logging configuration from main() to Application.__init__() via _configure_logging()
- Add external_function.log_file and external_function.log_format config options
- Update Application docstring to document all parameters including logging
- Refactor Timer.finish() to return metrics dict instead of logging directly
- Configure uvicorn logging to use same log file when specified

This refactoring centralizes logging configuration and allows for more flexible
UDF application logging through configuration parameters.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add external_function.disable_metrics configuration option (default: False)
- Add disable_metrics parameter to Application class constructor
- Update Application to create logger-specific instances with unique names
- Add --disable-metrics command-line argument to main function
- Conditionally log metrics based on disable_metrics flag
- Support configuration via environment variable SINGLESTOREDB_EXT_FUNC_DISABLE_METRICS

This allows users to disable the logging of function call metrics when needed,
while maintaining backward compatibility with existing behavior.
- Remove external_function.log_format configuration option and --log-format CLI flag
- Standardize on JSON formatted logging for all external function applications
- Add external_function.app_name configuration option with --app-name CLI flag
- Change Application class constructor parameter from 'name=' to 'app_name=' for consistency
- Update logging configuration to use JSON formatter for both console and file output
- Improve structured logging with additional context fields (app_name, request_id, etc.)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Move uvicorn log config creation from main() into a reusable method
- Allow external users to match the Application's logging format
- Simplify main() by using the new method
- Uses the same JSON formatter and settings as Application's internal logging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@kesmit13 kesmit13 merged commit 3ff248a into main Aug 18, 2025
28 checks passed
@kesmit13 kesmit13 deleted the udf_logging branch August 18, 2025 14:56
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.

3 participants