Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/netuitive_ruby_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def clear_metrics
end

def interval
server_interaction { netuitivedServer.interval }
netuitivedServer.interval # synchronous for return value
end

def event(message, timestamp = Time.new, title = 'Ruby Event', level = 'Info', source = 'Ruby Agent', type = 'INFO', tags = nil)
server_interaction { netuitivedServer.event(message, timestamp, title, level, source, type, tags) }
end

def exception_event(exception, klass = nill, uri = nil, controller = nil, action = nil)
server_interaction { netuitivedServer.exceptionEvent(exception, klass, uri, controller, action) }
def exception_event(exception, klass = nil, tags = nil)
server_interaction { netuitivedServer.exceptionEvent(exception, klass, tags) }
Copy link
Copy Markdown
Contributor

@TheConnMan TheConnMan Oct 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does netuitive_ruby_api need to be refactored to handle this refactoring? exceptionEvent still uses URI and controller.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redacting this comment, this function is the function I thought needed to be refactored.

end

def stop_server
Expand Down