Releases: PostHog/posthog-python
Releases · PostHog/posthog-python
Release list
posthog-v7.23.0
Immutable
release. Only release title and notes can be modified.
Minor changes
-
5e42b1e Add the
posthog.metricsAPI (count,gauge,histogram) — alpha.Backend services can now record metrics through the same statsd-style pre-aggregating client the browser SDK ships, with no OpenTelemetry setup:
client = Posthog("<ph_project_api_key>", metrics={"service_name": "billing-worker"}) client.metrics.count("invoices.processed", 1, attributes={"plan": "pro"}) client.metrics.gauge("queue.depth", 42) client.metrics.histogram("job.duration", 187, unit="ms")
Samples aggregate in memory and flush as OTLP/JSON to
/i/v1/metrics(one data point per series per window, delta temporality). Pending metrics are flushed onshutdown(); buffered windows are retried on transient failures and dropped loudly after 3 consecutive failed flushes. Themetricsclient option acceptsservice_name,service_version,environment,resource_attributes,flush_interval(seconds),max_series_per_flush(cardinality guardrail, default 1000), and abefore_sendhook. — Thanks @DanielVisca!
openfeature-provider-posthog-v0.1.10
Immutable
release. Only release title and notes can be modified.
Patch changes
- Updated dependencies: posthog@7.23.0
posthog-v7.22.4
Immutable
release. Only release title and notes can be modified.
posthog-v7.22.3
Immutable
release. Only release title and notes can be modified.
Patch changes
- ae3c4e5 Malformed flag-dependency conditions (missing key, null value, or wrong operator) now evaluate locally as no-match (false), matching the server, instead of falling back to the
/flagsendpoint on every evaluation. 7.22.1 made these conditions fall back to the server, which could massively increase billable/flagsrequest volume for flag definitions containing legacy/malformed dependency conditions. — Thanks @patricio-posthog!
openfeature-provider-posthog-v0.1.9
Immutable
release. Only release title and notes can be modified.
Patch changes
- Updated dependencies: posthog@7.22.4
openfeature-provider-posthog-v0.1.8
Immutable
release. Only release title and notes can be modified.
Patch changes
- Updated dependencies: posthog@7.22.3
posthog-v7.22.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- 4d61b18 Capture pre-calculated total cost from OpenAI Agents Responses API usage. — Thanks @fuchengwarrenzhu for your first contribution 🎉!
openfeature-provider-posthog-v0.1.7
Immutable
release. Only release title and notes can be modified.
Patch changes
- Updated dependencies: posthog@7.22.2
posthog-v7.22.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 650d107 Fix local evaluation of flag dependencies with a
flag_evaluates_to: falsecondition: such conditions never matched, forcing the dependent flag tofalsefor every locally-evaluated user. — Thanks @matheus-vb!
openfeature-provider-posthog-v0.1.6
Immutable
release. Only release title and notes can be modified.
Patch changes
- Updated dependencies: posthog@7.22.1