Class: Libhoney::NullClient Private

Inherits:
Client
  • Object
show all
Defined in:
lib/libhoney/null_client.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A no-op client that silently drops events. Does not send events to Honeycomb, or to anywhere else for that matter.

This class is intended as a fallback for callers that wanted to instantiate a regular Client but had insufficient config to do so (e.g. missing writekey).

Constant Summary

Constants inherited from Client

Client::API_HOST, Client::DEFAULT_DATASET

Instance Attribute Summary

Attributes inherited from Client

#block_on_responses, #block_on_send, #max_batch_size, #max_concurrent_batches, #pending_work_capacity, #responses, #send_frequency

Instance Method Summary collapse

Methods inherited from Client

#add, #add_dynamic_field, #add_field, #close, #send_dropped_response, #send_event, #send_now, #should_drop

Constructor Details

#initialize(*args, **kwargs) ⇒ NullClient

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NullClient.



14
15
16
17
18
# File 'lib/libhoney/null_client.rb', line 14

def initialize(*args, **kwargs)
  super(*args,
        transmission: NullTransmissionClient.new,
        **kwargs)
end