Class: OpenTelemetry::SDK::Logs::Export::ConsoleLogRecordExporter
- Inherits:
- 
      Object
      
        - Object
- OpenTelemetry::SDK::Logs::Export::ConsoleLogRecordExporter
 
- Defined in:
- lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb
Overview
Outputs LogRecordData to the console.
Potentially useful for exploratory purposes.
Instance Method Summary collapse
- #export(log_records, timeout: nil) ⇒ Object
- #force_flush(timeout: nil) ⇒ Object
- 
  
    
      #initialize  ⇒ ConsoleLogRecordExporter 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ConsoleLogRecordExporter. 
- #shutdown(timeout: nil) ⇒ Object
Constructor Details
#initialize ⇒ ConsoleLogRecordExporter
Returns a new instance of ConsoleLogRecordExporter.
| 15 16 17 | # File 'lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb', line 15 def initialize @stopped = false end | 
Instance Method Details
#export(log_records, timeout: nil) ⇒ Object
| 19 20 21 22 23 24 25 | # File 'lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb', line 19 def export(log_records, timeout: nil) return FAILURE if @stopped Array(log_records).each { |s| pp s } SUCCESS end | 
#force_flush(timeout: nil) ⇒ Object
| 27 28 29 | # File 'lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb', line 27 def force_flush(timeout: nil) SUCCESS end | 
#shutdown(timeout: nil) ⇒ Object
| 31 32 33 34 | # File 'lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb', line 31 def shutdown(timeout: nil) @stopped = true SUCCESS end |