lib/appsignal/transaction.rb in appsignal-0.8.3 vs lib/appsignal/transaction.rb in appsignal-0.8.4.beta.0
- old
+ new
@@ -144,11 +144,11 @@
protected
def add_sanitized_context!
sanitize_environment!
- sanitize_session_data!
+ sanitize_session_data! if kind == 'http_request'
sanitize_tags!
@env = nil
end
# Only keep tags if they meet the following criteria:
@@ -167,11 +167,12 @@
sanitized_environment[key] = value if ENV_METHODS.include?(key)
end
end
def sanitize_session_data!
- @sanitized_session_data =
- Appsignal::Transaction::ParamsSanitizer.sanitize(request.session.to_hash)
+ @sanitized_session_data = Appsignal::Transaction::ParamsSanitizer.sanitize(
+ request.session.to_hash
+ )
@fullpath = request.fullpath
end
end
end