Module: Libhoney

Defined in:
lib/libhoney/queueing/sized_queue_with_timeout.rb,
lib/libhoney.rb,
lib/libhoney/event.rb,
lib/libhoney/client.rb,
lib/libhoney/builder.rb,
lib/libhoney/cleaner.rb,
lib/libhoney/version.rb,
lib/libhoney/response.rb,
lib/libhoney/log_client.rb,
lib/libhoney/null_client.rb,
lib/libhoney/test_client.rb,
lib/libhoney/transmission.rb,
lib/libhoney/log_transmission.rb,
lib/libhoney/mock_transmission.rb,
lib/libhoney/null_transmission.rb,
lib/libhoney/experimental_transmission.rb

Overview

SizedQueueWithTimeout is copyright and licensed per the LICENSE.txt in its containing subdirectory of this codebase.

Defined Under Namespace

Modules: Cleaner, Queueing Classes: Builder, Client, Event, ExperimentalTransmissionClient, LogClient, LogTransmissionClient, MockTransmissionClient, NullClient, NullTransmissionClient, Response, TestClient, TransmissionClient

Constant Summary collapse

VERSION =
'2.4.0'.freeze

Class Method Summary collapse

Class Method Details

.classic_api_key?(api_key) ⇒ Boolean

Determines if the given string is a Honeycomb API key for Classic environments.

Parameters:

  • api_key (String)

    the string to check

Returns:

  • (Boolean)

    true if the string is nil or a classic API key, false otherwise



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

def self.classic_api_key?(api_key)
  api_key.nil? || # default to classic behavior if no API key is provided
    CLASSIC_KEY_ORIGINAL_FLAVOR.match?(api_key) ||
    CLASSIC_KEY_V3_INGEST.match?(api_key)
end