Module: NewRelic::Agent::Instrumentation::SemanticLogger::Logger
- Included in:
- SemanticLogger::Logger::Prepend
- Defined in:
- lib/new_relic/agent/instrumentation/semantic_logger/instrumentation.rb
Defined Under Namespace
Constant Summary collapse
- INSTRUMENTATION_NAME =
'SemanticLogger'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#log_with_new_relic(log) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/new_relic/agent/instrumentation/semantic_logger/instrumentation.rb', line 14 def log_with_new_relic(log) NewRelic::Agent.record_instrumentation_invocation(INSTRUMENTATION_NAME) begin NewRelic::Agent.agent.log_event_aggregator.record_semantic_logger(log) log. = NewRelic::Agent::LocalLogDecorator.decorate(log.) rescue => e NewRelic::Agent.logger.debug("Failed to capture Semantic Logger event: #{e.}") end yield if block_given? end |