【问题标题】:Rails: Can I use newrelic_logwatcher_agent on Heroku?Rails:我可以在 Heroku 上使用 newrelic_logwatcher_agent 吗?
【发布时间】:2014-09-26 06:53:39
【问题描述】:

我刚刚添加了 gem 并尝试安装 newrelic_agent 文件,但我收到了一些奇怪的错误,提示密钥为空。

[2014-09-26 06:47:41 UTC] INFO: Using Ruby SDK version: 1.3.1
[2014-09-26 06:47:41 UTC] INFO: Agent Logwatcher is at version 0.0.2
[2014-09-26 06:47:41 UTC] INFO: Agent Logwatcher is at version 0.0.2
[2014-09-26 06:47:41 UTC] DEBUG: Start collecting agent data for poll cycle
[2014-09-26 06:47:41 UTC] DEBUG: Finished collecting agent data for poll cycle
/Users/xxxxxx/.rvm/gems/ruby-1.9.3-p545@xxxxx/bundler/gems/newrelic_plugin-fffddc35e908/lib/newrelic_platform_binding/component.rb:14:in `key': undefined method `+' for nil:NilClass (NoMethodError)

我不打算在本地运行它还是无法完成?

【问题讨论】:

  • 确保gem 'newrelic_rpm' 行位于 Gemfile 中的任何组之外(例如开发或测试)。添加 gem 后,捆绑安装并将更改提交到 Gemfile 和 Gemfile.lock。
  • 它在我的 gemfile 的底部,没有任何组

标签: ruby-on-rails ruby logging heroku newrelic


【解决方案1】:

经过长时间的搜索,没有找到任何解决方案或答案,这就是我所拥有的 临时解决方案

我研究了 Heroku 插件,发现了很多适合初创公司的插件:

https://addons.heroku.com/keen

https://addons.heroku.com/flydata

https://addons.heroku.com/logentries

希望这会节省其他人的时间。

更新: 刚刚意识到https://addons.io/products 也有一个很好的列表。

【讨论】:

    猜你喜欢
    • 2015-03-25
    • 2016-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多