MCPcopy Create free account
hub / github.com/Codeplain-ai/codeplain / CaptureTransport

Class CaptureTransport

tests/test_telemetry.py:15–25  ·  view source on GitHub ↗

Transport that records events instead of sending them over the network.

Source from the content-addressed store, hash-verified

13
14
15class CaptureTransport(Transport):
16 """Transport that records events instead of sending them over the network."""
17
18 def __init__(self, options=None):
19 super().__init__(options)
20 self.events = []
21
22 def capture_envelope(self, envelope: Envelope):
23 event = envelope.get_event()
24 if event is not None:
25 self.events.append(event)
26
27
28def make_exc_info(exception):

Callers 2

transportFunction · 0.85

Calls

no outgoing calls

Tested by 2

transportFunction · 0.68