def record(self, traces):
        for (trace, annotations) in traces:
            trace_key = (trace.trace_id, trace.span_id)
            self._annotations_for_trace[trace_key].extend(annotations)

            for annotation in annotations:
                if self._end_annotations in annotation.name:
                    saved_annotations = self._annotations_for_trace[trace_key]

                    del self._annotations_for_trace[trace_key]

                    log.debug(format=("Sending trace: %(trace_key)s w/"
                                      " %(annotations)s"),
                              system=self.__class__.__name__,
                              trace_key=trace_key,
                              annotations=annotations)
                    self._tracer.record([(trace, saved_annotations)])

                    break
dataset/ETHPy150Open tryfer/tryfer/tryfer/tracers.py/EndAnnotationTracer.record/swapped operands of `in`