You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update Datadog tools to use dynamic configuration factory (#10)
* refactor: update Datadog tools to use dynamic configuration factory functions
This commit introduces a significant refactoring of Datadog tool handlers:
- Replace static API instances with dynamic configuration factory functions
- Remove direct import of datadogConfig from utils/datadog
- Update index files to export new factory functions instead of static handlers
- Improve flexibility by allowing dynamic Datadog client configuration
- Standardize tool handler creation across different modules
The changes enable more flexible and configurable Datadog tool integrations while maintaining the existing tool interfaces.
* test: add comprehensive tests for Datadog configuration utilities
This commit introduces a new test suite for Datadog configuration functions:
- Create tests for `createDatadogConfig` with various configuration scenarios
- Add tests for `getDatadogSite` to verify site retrieval
- Validate configuration creation with and without custom sites
- Ensure proper error handling for missing API and APP keys
* feat: integrate Datadog configuration with tool handlers
This commit updates the main index file to:
- Validate Datadog API and APP key environment variables
- Create a dynamic Datadog configuration using environment settings
- Refactor tool handlers to use the new configuration factory functions
- Ensure consistent configuration across all Datadog tool handlers
* chore: bump package version to 1.1.0
This version bump reflects the recent feature additions and improvements to the Datadog server integration, including:
- Dynamic Datadog configuration
- Enhanced tool handlers
- New host management functionality
* test: remove commented-out test configuration in Datadog test suite
0 commit comments