Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from JustinAiken/feature/single_socket
Change to use a single socket, to avoid fd sockets leaking…
- Loading branch information
Showing
6 changed files
with
31 additions
and
6 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
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