MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / RecordingProvider

Class RecordingProvider

tests/test_tracing.py:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68class RecordingProvider(TracerProvider):
69 def __init__(self, *, sampled: bool = True) -> None:
70 self.spans: list[RecordingSpan] = []
71 self.sampled = sampled
72 self.tracers = 0
73
74 @override
75 def get_tracer(self, *args: Any, **kwargs: Any) -> Tracer:
76 self.tracers += 1
77 return RecordingTracer(self)
78
79
80class CountingPropagator(TextMapPropagator):

Calls

no outgoing calls