-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# feature/single_socket | ||
* Use a single UDP Socket | ||
|
||
# 0.0.2 | ||
* BUGFIX: Log location relative to `Adhearsion.root` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem 'statsd-ruby', require: false, github: "JustinAiken/statsd", branch: "feature/optional_socket_argument" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module AdhearsionStats; end | ||
|
||
require "adhearsion-stats/version" | ||
require "adhearsion-stats/stactor" | ||
require "adhearsion-stats/metrics_logger" | ||
require "adhearsion-stats/plugin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module AdhearsionStats | ||
class Stactor | ||
include Celluloid | ||
|
||
attr_accessor :statsd | ||
|
||
def initialize(statsd) | ||
@statsd = statsd | ||
end | ||
|
||
def send_stat(meth, *args, &blk) | ||
statsd.send meth, *args, &blk | ||
end | ||
|
||
def method_missing(meth, *args, &blk) | ||
self.async.send_stat meth, *args, &blk | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters