Beispiel #1
0
    def save_event():
        data = {"timestamp": time.time()}
        evt = Event(
            default_project.id,
            "89aeed6a472e4c5fb992d14df4d7e1b6",
            data=data,
        )

        return_values.append(
            _save_aggregate(
                evt,
                flat_hashes=["a" * 32, "b" * 32],
                hierarchical_hashes=[],
                release=None,
                data=data,
                level=10,
                culprit="",
            ))
    def inner(last_frame):
        data = {"timestamp": time.time()}
        evt = Event(
            default_project.id,
            uuid.uuid4().hex,
            data=data,
        )

        return _save_aggregate(
            evt,
            flat_hashes=["a" * 32, "b" * 32],
            hierarchical_hashes=[
                "c" * 32, "d" * 32, "e" * 32, last_frame * 32
            ],
            release=None,
            data=data,
            level=10,
            culprit="",
        )
    def save_event():
        data = {"timestamp": time.time()}
        evt = Event(
            default_project.id,
            "89aeed6a472e4c5fb992d14df4d7e1b6",
            data=data,
        )

        return_values.append(
            _save_aggregate(
                evt,
                hashes=CalculatedHashes(
                    hashes=["a" * 32, "b" * 32],
                    hierarchical_hashes=[],
                    tree_labels=[],
                ),
                release=None,
                metadata={},
                received_timestamp=None,
                level=10,
                culprit="",
            ))
Beispiel #4
0
    def inner(last_frame):
        data = {"timestamp": time.time(), "type": "error"}
        evt = Event(
            default_project.id,
            uuid.uuid4().hex,
            data=data,
        )

        with task_runner():
            return _save_aggregate(
                evt,
                hashes=CalculatedHashes(
                    hashes=["a" * 32, "b" * 32],
                    hierarchical_hashes=[
                        "c" * 32, "d" * 32, "e" * 32, last_frame * 32
                    ],
                    tree_labels=[
                        [{
                            "function": "foo"
                        }],
                        [{
                            "function": "bar"
                        }],
                        [{
                            "function": "baz"
                        }],
                        [{
                            "function": "bam"
                        }],
                    ],
                ),
                release=None,
                metadata={},
                received_timestamp=None,
                level=10,
                culprit="",
            )