Commit 198b0646 authored by Bob Van Landuyt's avatar Bob Van Landuyt 💬
Browse files

Add a related_class field to the context

This field will be used for the `ReactiveCachingWorker` which can
perform different kinds of work based on the class that calls it.
parent 23f4c414
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,7 +21,8 @@ module Labkit
    LOG_KEY = "meta"
    CORRELATION_ID_KEY = "correlation_id"
    RAW_KEYS = [CORRELATION_ID_KEY].freeze
    KNOWN_KEYS = %w[user project root_namespace subscription_plan caller_id].freeze
    KNOWN_KEYS = %w[user project root_namespace subscription_plan caller_id
                    related_class].freeze

    class << self
      def with_context(attributes = {})