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

Raise if not running OTP 21 #151

Merged
merged 3 commits into from
Nov 4, 2019
Merged

Conversation

binaryseed
Copy link
Collaborator

This PR will cause the agent to fail fast if the application is pre-OTP 21. We already rely on some features in OTP 21 and the agent will fail with unhelpful errors.

I considered other options like not starting the application supervision tree but that may cause it's own set of problems if there are calls to NewRelic functions for instrumentation, etc. Open to thoughts on this...

closes #150
closes #138

sidekick/ @mattbaker

Copy link
Contributor

@mattbaker mattbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels right. As a developer, I think I'd prefer to see an exception raise than a potentially silent failure if the agent application chooses not to start.

@binaryseed
Copy link
Collaborator Author

Upcoming Elixir 1.10 release is also going to be OTP 21+ only.

@binaryseed binaryseed merged commit bf396f3 into newrelic:master Nov 4, 2019
@binaryseed binaryseed deleted the require-otp-21 branch November 4, 2019 20:18
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.

Error while upgrading from v1.10.0 to 1.10.1 Document minimum OTP version
2 participants