Skip to content

Commit ea945f3

Browse files
committed
Improve marker schema
1 parent 6be148a commit ea945f3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

lib/vernier/hooks/active_support.rb

+19-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ class ActiveSupport
77
{
88
name: "sql.active_record",
99
display: [ "marker-chart", "marker-table" ],
10+
tooltipLabel: "{marker.data.name}",
11+
chartLabel: "{marker.data.name}",
12+
tableLabel: "{marker.data.sql}",
1013
data: [
11-
{ key: "sql", format: "string" },
12-
{ key: "name", format: "string" },
14+
{ key: "sql", format: "string", searchable: true },
15+
{ key: "name", format: "string", searchable: true },
1316
{ key: "type_casted_binds", label: "binds", format: "string"
1417
}
1518
]
@@ -25,6 +28,9 @@ class ActiveSupport
2528
{
2629
name: "process_action.action_controller",
2730
display: [ "marker-chart", "marker-table" ],
31+
tooltipLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
32+
chartLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
33+
tableLabel: '{marker.data.method} {marker.data.controller}#{marker.data.action}',
2834
data: [
2935
{ key: "controller", format: "string" },
3036
{ key: "action", format: "string" },
@@ -60,6 +66,17 @@ class ActiveSupport
6066
{ key: "key", format: "string" },
6167
{ key: "store", format: "string" }
6268
]
69+
},
70+
{
71+
name: "render_template.action_view",
72+
display: [ "marker-chart", "marker-table" ],
73+
tooltipLabel: '{marker.data.identifier}',
74+
chartLabel: '{marker.data.identifier}',
75+
tableLabel: '{marker.data.identifier}',
76+
data: [
77+
{ key: "key", format: "string" },
78+
{ key: "identifier", format: "string" }
79+
]
6380
}
6481
])
6582

0 commit comments

Comments
 (0)