Sha256: 32b8e6646b97b22891e30b43c8e736075e3cbc371ebd72ad02a184ba007ef05d

Contents?: true

Size: 1.58 KB

Versions: 4

Compression:

Stored size: 1.58 KB

Contents

require "dry-struct"
require "hermes/base_event"
require "hermes/configuration"
require "hermes/consumer_builder"
require "hermes/event_handler"
require "hermes/event_processor"
require "hermes/event_producer"
require "hermes/publisher"
require "hermes/publisher_factory"
require "hermes/serializer"
require "hermes/rpc_client"
require "hermes/null_instrumenter"
require "hermes/logger"
require "hermes/logger/params_filter"
require "hermes/rb"
require "hermes/b_3_propagation_model_headers"
require "hermes/trace_context"
require "hermes/distributed_trace_repository"
require "hermes/dependencies_container"
require "hermes/null_error_notification_service"
require "hermes/database_error_handler"
require "hermes/retryable"
require "hermes/retryable_event_producer"
require "hermes/producer_error_handler"
require "hermes/producer_error_handler/null_handler"
require "hermes/producer_error_handler/safe_handler"
require "hermes/tracers"
require "hermes/checks"
require "active_support"
require "active_support/core_ext/string"
require "active_record"
require "request_store"

module Hermes
  def self.configuration
    @configuration ||= Hermes::Configuration.new
  end

  def self.configure
    yield configuration
  end

  ORIGIN_HEADERS_KEY = :__hermes__origin_headers
  private_constant :ORIGIN_HEADERS_KEY

  def self.origin_headers
    DependenciesContainer["global_store"][ORIGIN_HEADERS_KEY].to_h
  end

  def self.origin_headers=(headers)
    DependenciesContainer["global_store"][ORIGIN_HEADERS_KEY] = headers.to_h
  end
end

require "hermes/distributed_trace"
require "hermes/distributed_trace/mapper"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hermes-rb-0.7.1 lib/hermes.rb
hermes-rb-0.7.0 lib/hermes.rb
hermes-rb-0.6.1 lib/hermes.rb
hermes-rb-0.6.0 lib/hermes.rb