Skip to content

Commit c1a49fb

Browse files
committed
More improvements to notifications
1 parent 6684f9b commit c1a49fb

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

lib/vernier/hooks/active_support.rb

+25-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,29 @@ class ActiveSupport
2020
{
2121
name: "instantiation.active_record",
2222
display: [ "marker-chart", "marker-table" ],
23-
tooltipLabel: "{marker.data.record_count} × {marker.data.name}",
24-
chartLabel: "{marker.data.record_count} × {marker.data.name}",
25-
tableLabel: "Instantiate {marker.data.record_count} × {marker.data.sql}",
23+
tooltipLabel: "{marker.data.record_count} × {marker.data.class_name}",
24+
chartLabel: "{marker.data.record_count} × {marker.data.class_name}",
25+
tableLabel: "Instantiate {marker.data.record_count} × {marker.data.class_name}",
2626
data: [
2727
{ key: "record_count", format: "integer" },
2828
{ key: "class_name", format: "string" }
2929
]
3030
},
31+
{
32+
name: "start_processing.action_controller",
33+
display: [ "marker-chart", "marker-table" ],
34+
tooltipLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
35+
chartLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
36+
tableLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
37+
data: [
38+
{ key: "controller", format: "string" },
39+
{ key: "action", format: "string" },
40+
{ key: "status", format: "integer" },
41+
{ key: "path", format: "string" },
42+
{ key: "method", format: "string" }
43+
{ key: "format", format: "string" }
44+
]
45+
},
3146
{
3247
name: "process_action.action_controller",
3348
display: [ "marker-chart", "marker-table" ],
@@ -40,11 +55,15 @@ class ActiveSupport
4055
{ key: "status", format: "integer" },
4156
{ key: "path", format: "string" },
4257
{ key: "method", format: "string" }
58+
{ key: "format", format: "string" }
4359
]
4460
},
4561
{
4662
name: "cache_read.active_support",
4763
display: [ "marker-chart", "marker-table" ],
64+
tooltipLabel: '{marker.data.super_operation} {marker.data.key}',
65+
chartLabel: '{marker.data.super_operation} {marker.data.key}',
66+
tableLabel: '{marker.data.super_operation} {marker.data.key}',
4867
data: [
4968
{ key: "key", format: "string" },
5069
{ key: "store", format: "string" },
@@ -64,6 +83,9 @@ class ActiveSupport
6483
},
6584
{
6685
name: "cache_fetch_hit.active_support",
86+
tooltipLabel: 'HIT {marker.data.key}',
87+
chartLabel: 'HIT {marker.data.key}',
88+
tableLabel: 'HIT {marker.data.key}',
6789
display: [ "marker-chart", "marker-table" ],
6890
data: [
6991
{ key: "key", format: "string" },

0 commit comments

Comments
 (0)