MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / feature_usage_span

Method feature_usage_span

lib/cli/tests/test_run_usage.py:140–147  ·  view source on GitHub ↗
(self, feature: str, attributes: Any = None)

Source from the content-addressed store, hash-verified

138 pass
139
140 def feature_usage_span(self, feature: str, attributes: Any = None) -> None:
141 assert feature in ALLOWED_EVENTS, feature
142 if feature == stopped("load_failed"):
143 assert attributes is None or set(attributes) == {"error_class"}
144 error_classes.append(None if attributes is None else attributes["error_class"])
145 else:
146 assert attributes is None, feature
147 sent.append(feature)
148
149 monkeypatch.setattr("crewai_core.telemetry.Telemetry", FakeTelemetry)
150 return sent

Callers 1

Calls 2

stoppedFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected