File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ def call(env)
1818 request_id : request . request_id
1919 )
2020
21- CurrentContext . add ( context . to_hash )
22- @app . call ( env )
21+ CurrentContext . with ( context . to_hash ) do
22+ @app . call ( env )
23+ end
2324 end
2425 end
2526 end
Original file line number Diff line number Diff line change @@ -67,10 +67,12 @@ def custom_user_hash
6767 def call ( env )
6868 user_hash = get_user_hash ( env )
6969 if user_hash
70- CurrentContext . add ( { user : user_hash } )
70+ CurrentContext . with ( { user : user_hash } ) do
71+ @app . call ( env )
72+ end
73+ else
74+ @app . call ( env )
7175 end
72-
73- @app . call ( env )
7476 end
7577
7678 private
Original file line number Diff line number Diff line change 11module Logtail
22 module Integrations
33 module Rack
4- VERSION = "0.1.6 "
4+ VERSION = "0.2.0 "
55 end
66 end
77end
You can’t perform that action at this time.
0 commit comments