require 'thread' require 'socket' require 'openssl' require 'net/http' require 'active_support/notifications' module Skylight class Error < RuntimeError; end TIERS = %w( app view db gc) # First require all util files require 'skylight/util/atomic' require 'skylight/util/bytes' require 'skylight/util/clock' require 'skylight/util/ewma' require 'skylight/util/gzip' require 'skylight/util/http' require 'skylight/util/queue' require 'skylight/util/uniform_sample' require 'skylight/util/uuid' # Then require the rest require 'skylight/sanity_checker' require 'skylight/compat' require 'skylight/config' require 'skylight/instrumenter' require 'skylight/middleware' require 'skylight/normalize' require 'skylight/json_proto' require 'skylight/subscriber' require 'skylight/trace' require 'skylight/worker' # Some helper functions def self.current_endpoint=(name) if t = Trace.current t.endpoint = name end name rescue nil ensure end end if defined?(Rails) require 'skylight/railtie' end