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
-
#current_domain ⇒ Object
private
Returns the domain key from the service context, or nil when not set.
Instance Method Details
#current_domain ⇒ Object
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 |