added elastic apm and fixed session updated_at bug
This commit is contained in:
parent
3196dfbda9
commit
82bdbbcb5f
|
@ -19,6 +19,6 @@ module SessionTrackingConcern
|
||||||
end
|
end
|
||||||
|
|
||||||
def session_needs_update?
|
def session_needs_update?
|
||||||
!current_session.nil? && current_session.updated_at < UPDATE_SIGN_IN_HOURS.hours.ago
|
!current_session.nil? && current_session.updated_at > UPDATE_SIGN_IN_HOURS.hours.ago
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
# config/elastic_apm.yml:
|
||||||
|
|
||||||
|
# Set service name - allowed characters: a-z, A-Z, 0-9, -, _ and space
|
||||||
|
# Defaults to the name of your Rails app
|
||||||
|
service_name: <%= ENV['ELASTIC_APM_URL'] || 'gabsocial' %>
|
||||||
|
|
||||||
|
# Use if APM Server requires a token
|
||||||
|
secret_token: <%= ENV['ELASTIC_APM_SECRET_TOKEN'] || '' %>
|
||||||
|
|
||||||
|
# Set custom APM Server URL (default: http://localhost:8200)
|
||||||
|
server_url: <%= ENV['ELASTIC_APM_URL'] || 'http://localhost:8200'%>
|
Loading…
Reference in New Issue