NewRelic instrumentation for slack-ruby-bot.
Add to Gemfile.
gem 'newrelic-slack-ruby-bot'
This gem adds New Relic tracing to the Slack message hook, which is the start of all messages coming in from Slack.
New Relic will automatically record any external requests made through supported libraries (such as Net::HTTP
) and database queries for supported databases (such as MongoDB
and Redis
).
This gem also adds the team, channel, user, and match data from each message, which can be seen in New Relic transaction traces and Insights.
By default, newrelic-slack-ruby-bot
names New Relic transactions according to the operator, command, match, or scan route that was called.
To rename a New Relic transaction, make a call directly to the New Relic agent.
::NewRelic::Agent.set_transaction_name('new name')
The typical format for transaction names is ClassName/method
.
You can add additional custom attributes via the New Relic agent.
::NewRelic::Agent.add_custom_attributes(key: value)
You're encouraged to contribute to this gem. See CONTRIBUTING for details.
Copyright (c) 2015, Daniel Doubrovkine and Contributors.
This project is licensed under the MIT License.