No commit activity in last 3 years
No release in over 3 years
NewRelic instrumentation for slack-ruby-bot.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

NewRelic Instrumentation for SlackRubyBot

Gem Version Build Status Code Climate

NewRelic instrumentation for slack-ruby-bot.

NewRelic Transactions

Install

Add to Gemfile.

gem 'newrelic-slack-ruby-bot'

Usage

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.

NewRelic Breakdown of calculate command

Renaming transactions

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.

Adding custom attributes

You can add additional custom attributes via the New Relic agent.

::NewRelic::Agent.add_custom_attributes(key: value)

I only see Web transactions! Where are my Slack transactions?

NewRelic Transactions menu

Contributing

You're encouraged to contribute to this gem. See CONTRIBUTING for details.

Copyright and License

Copyright (c) 2015, Daniel Doubrovkine and Contributors.

This project is licensed under the MIT License.