Module: Stitches::CallingServiceName

Included in:
Api::ApiController
Defined in:
lib/stitches/calling_service_name.rb

Instance Method Summary collapse

Instance Method Details

#calling_service_nameObject



3
4
5
6
7
8
# File 'lib/stitches/calling_service_name.rb', line 3

def calling_service_name
  @calling_service_name ||=
    request.headers[Stitches.configuration.calling_service_header].presence ||
    request.env[Stitches.configuration.env_var_to_hold_api_client]&.name ||
    ""
end