File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
src/sentry/grouping/enhancer Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -755,18 +755,16 @@ def assemble_stacktrace_component(
755
755
756
756
return stacktrace_component
757
757
758
- def _to_config_structure (self ) -> list [Any ]:
759
- # TODO: Can we switch this to a tuple so we can type it more exactly?
760
- return [
761
- self .version ,
762
- self .bases ,
763
- [rule ._to_config_structure (self .version ) for rule in self .rules ],
764
- ]
765
-
766
758
@cached_property
767
759
def base64_string (self ) -> str :
768
760
"""A base64 string representation of the enhancements object"""
769
- pickled = msgpack .dumps (self ._to_config_structure ())
761
+ pickled = msgpack .dumps (
762
+ [
763
+ self .version ,
764
+ self .bases ,
765
+ [rule ._to_config_structure (self .version ) for rule in self .rules ],
766
+ ]
767
+ )
770
768
compressed_pickle = zstandard .compress (pickled )
771
769
base64_bytes = base64 .urlsafe_b64encode (compressed_pickle ).strip (b"=" )
772
770
base64_str = base64_bytes .decode ("ascii" )
You can’t perform that action at this time.
0 commit comments