Sha256: a392a50bc1c6ee8d1793ae084fd8ffa7e8eb1d37f02ca10d302bca55a7858412

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 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/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 "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"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hermes-rb-0.2.0 lib/hermes.rb