Skip to content

Commit 8e6784b

Browse files
committed
feat: Add labels for http.session.clear, dao.materialize, log
1 parent 6145d07 commit 8e6784b

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- method: Logger::LogDevice#write
2+
require_name: logger
3+
label: log

lib/appmap/gem_hooks/actionpack.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@
1010
- methods:
1111
- ActionDispatch::Request::Session#destroy
1212
- ActionDispatch::Request::Session#[]=
13-
- ActionDispatch::Request::Session#clear
1413
- ActionDispatch::Request::Session#update
1514
- ActionDispatch::Request::Session#delete
1615
- ActionDispatch::Request::Session#merge
1716
- ActionDispatch::Cookies::CookieJar#[]=
18-
- ActionDispatch::Cookies::CookieJar#clear
1917
- ActionDispatch::Cookies::CookieJar#update
2018
- ActionDispatch::Cookies::CookieJar#delete
2119
- ActionDispatch::Cookies::CookieJar#recycle!
2220
label: http.session.write
2321
require_name: action_dispatch
22+
- methods:
23+
- ActionDispatch::Request::Session#clear
24+
- ActionDispatch::Cookies::CookieJar#clear
25+
labels:
26+
- http.session.write
27+
- http.session.clear
28+
require_name: action_dispatch
2429
- methods:
2530
- ActionDispatch::Cookies::EncryptedCookieJar#[]=
2631
- ActionDispatch::Cookies::EncryptedCookieJar#clear
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- method: ActiveRecord::Relation#records
2+
label: dao.materialize

spec/config_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@
9696
]
9797
}
9898
],
99+
"Logger::LogDevice": [
100+
{
101+
"package": "logger",
102+
"method_names": [
103+
"write"
104+
]
105+
}
106+
],
99107
"Net::HTTP": [
100108
{
101109
"package": "net/http",

0 commit comments

Comments
 (0)