Module: Railsmith::BaseService::DomainContextPropagation Private

Defined in:
lib/railsmith/base_service/domain_context_propagation.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Exposes the current domain from context and emits instrumentation events so domain tags flow into observability tooling on every service call.

Instance Method Summary collapse

Instance Method Details

#current_domainObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the domain key from the service context, or nil when not set. A nil domain is permitted in flexible mode.



11
12
13
# File 'lib/railsmith/base_service/domain_context_propagation.rb', line 11

def current_domain
  DomainContext.normalize_current_domain(context[:current_domain])
end