Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.05 KB

File metadata and controls

17 lines (12 loc) · 1.05 KB

clamp-analytics (Python) changelog

0.2.0

  • Added capture_error(exception, context=None, anonymous_id=None, timestamp=None) for sending exceptions as $error events. Extracts message, type, and stack from the exception via traceback.format_exception. Server adds a stable fingerprint at ingest so the same bug groups across occurrences.
  • Context properties (extra primitive key-value pairs) are passed through; the reserved key handled is ignored to keep error.handled honest.

0.1.0

Initial release.

  • init(project_id, api_key, endpoint=None): configure the SDK once at process start.
  • track(name, properties=None, anonymous_id=None, timestamp=None): send a server event. Returns True; raises ClampHTTPError on non-2xx, ClampNotInitializedError when called before init.
  • Money(amount, currency): typed monetary value for revenue, refunds, taxes.
  • Property values: str, int, float, bool, Money. Arrays and nested dicts (other than Money) rejected at call time.
  • Single dependency: httpx.
  • Tested on Python 3.9 through 3.13.