Skip to content
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

fix: Make Datadog requirements optional #1

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

baumandm
Copy link

Changes to avoid requiring Datadog packages to be installed unless the DatadogStatsLogger is being used.

Initially I used the same approach as the AI Assistant, removing it by default and providing comments in plugins/stats_logger_plugin/__init__.py detailing how to enable the DatadogStatsLogger.

But then I realized I could leave it included but use a lazy import to achieve the same effect, without requiring users to mess with the plugins at all.

I think I prefer the lazy loading approach since it's simpler for users and keeps it as a "built-in" option, but either work.

@jij1949 jij1949 merged commit 1091818 into jij1949:datadog_monitoring Jan 22, 2024
3 checks passed
@baumandm baumandm deleted the datadog_monitoring branch January 30, 2024 16:26
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.

2 participants