Sha256: a44b013bfb46ce4652225efcca2a4fdadbb9234e2179737df305eb80dde68b03
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Extension module Protect # This Module functions as our patch into the Kernel class for Protect, # allowing us to track activity as it crosses spawned processes. module Kernel class << self def build_wrapper lambda { proc_start yield # AtExitHook handles sending any messages generated in the new forked process } end def proc_start context = Contrast::Agent::REQUEST_TRACKER.current return unless context context.reset_activity end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-4.11.0 | lib/contrast/extension/protect/kernel.rb |
contrast-agent-4.10.0 | lib/contrast/extension/protect/kernel.rb |