@@ -112,7 +112,6 @@ def add_to_hint(self, hint, var):
112
112
113
113
114
114
class Enhancements :
115
-
116
115
# NOTE: You must add a version to ``VERSIONS`` any time attributes are added
117
116
# to this class, s.t. no enhancements lacking these attributes are loaded
118
117
# from cache.
@@ -181,7 +180,6 @@ def update_frame_components_contributions(self, components, frames, platform, ex
181
180
stacktrace_state = StacktraceState ()
182
181
# Apply direct frame actions and update the stack state alongside
183
182
for rule in self ._updater_rules :
184
-
185
183
for idx , action in rule .get_matching_frame_actions (
186
184
match_frames , platform , exception_data , in_memory_cache
187
185
):
@@ -354,7 +352,12 @@ def _as_updater_rule(self) -> Rule | None:
354
352
def as_dict (self ):
355
353
matchers = {}
356
354
for matcher in self .matchers :
357
- matchers [matcher .key ] = matcher .pattern
355
+ if isinstance (matcher , CalleeMatch ):
356
+ matchers ["callee" ] = f"{ matcher .caller .description } { matcher .description } "
357
+ elif isinstance (matcher , CallerMatch ):
358
+ matchers ["caller" ] = f"{ matcher .description } { matcher .caller .description } "
359
+ else :
360
+ matchers [matcher .key ] = matcher .pattern
358
361
return {"match" : matchers , "actions" : [str (x ) for x in self .actions ]}
359
362
360
363
def get_matching_frame_actions (
0 commit comments