Skip to content

Commit 6d729fe

Browse files
authored
[debugger] Add method metric probe expression test (#6965)
1 parent 5e9a563 commit 6d729fe

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

manifests/golang.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ manifest:
849849
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Line_Probe_Snaphots_With_SCM: v2.2.3
850850
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Line_Probe_Snaphots_With_SCM::test_span_decoration_line_snapshot: missing_feature (no span-decoration endpoint)
851851
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots: v2.2.3
852+
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots::test_metric_method_expression: missing_feature (Not yet implemented)
852853
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots::test_mix_snapshot: missing_feature (Not yet implemented)
853854
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots::test_span_decoration_method_snapshot: missing_feature (Not yet implemented)
854855
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots::test_span_method_snapshot: missing_feature (Not yet implemented)

manifests/ruby.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,6 +1713,7 @@ manifest:
17131713
rails80: v2.8.0
17141714
uds-rails: v2.12.0
17151715
- declaration: missing_feature (Not yet implemented)
1716+
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots::test_metric_method_expression: missing_feature (Not yet implemented)
17161717
tests/debugger/test_debugger_probe_snapshot.py::Test_Debugger_Method_Probe_Snaphots_With_SCM:
17171718
- weblog_declaration:
17181719
"*": irrelevant

tests/debugger/test_debugger_probe_snapshot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ def test_span_decoration_method_snapshot(self):
151151
self._assert()
152152
self._validate_spans()
153153

154+
### metric probe ###
155+
def setup_metric_method_expression(self):
156+
self._setup("probe_expression_metric_method", "/debugger/metric/1", "metric", lines=None)
157+
158+
def test_metric_method_expression(self):
159+
self._assert()
160+
154161
### mix log probe ###
155162
def setup_mix_snapshot(self):
156163
self._setup("probe_snapshot_log_mixed", "/debugger/mix/asd/1", "log", lines=None)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[
2+
{
3+
"language": "",
4+
"type": "",
5+
"id": "",
6+
"version": 0,
7+
"kind": "COUNT",
8+
"metricName": "system_tests.debugger.metric_method",
9+
"value": {
10+
"dsl": "id",
11+
"json": {
12+
"ref": "id"
13+
}
14+
},
15+
"where": {
16+
"typeName": "ACTUAL_TYPE_NAME",
17+
"methodName": "MetricProbe",
18+
"sourceFile": null
19+
}
20+
}
21+
]

0 commit comments

Comments
 (0)