Skip to content

Releases: PostHog/posthog-python

posthog-v7.23.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 15:42
Immutable release. Only release title and notes can be modified.
25e7a20

Minor changes

  • 5e42b1e Add the posthog.metrics API (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 on shutdown(); buffered windows are retried on transient failures and dropped loudly after 3 consecutive failed flushes. The metrics client option accepts service_name, service_version, environment, resource_attributes, flush_interval (seconds), max_series_per_flush (cardinality guardrail, default 1000), and a before_send hook. — Thanks @DanielVisca!

openfeature-provider-posthog-v0.1.10

Choose a tag to compare

@github-actions github-actions released this 15 Jul 15:43
Immutable release. Only release title and notes can be modified.
25e7a20

Patch changes

  • Updated dependencies: posthog@7.23.0

posthog-v7.22.4

Choose a tag to compare

@github-actions github-actions released this 14 Jul 22:02
Immutable release. Only release title and notes can be modified.
e2310c5

Patch changes

  • eb025c8 Django middleware also sends the request user agent as $raw_user_agent, the standardized property PostHog's server-side classification (e.g. bot detection) reads — Thanks @lricoy!

posthog-v7.22.3

Choose a tag to compare

@github-actions github-actions released this 14 Jul 19:36
Immutable release. Only release title and notes can be modified.
6042885

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 /flags endpoint on every evaluation. 7.22.1 made these conditions fall back to the server, which could massively increase billable /flags request volume for flag definitions containing legacy/malformed dependency conditions. — Thanks @patricio-posthog!

openfeature-provider-posthog-v0.1.9

Choose a tag to compare

@github-actions github-actions released this 14 Jul 22:03
Immutable release. Only release title and notes can be modified.
e2310c5

Patch changes

  • Updated dependencies: posthog@7.22.4

openfeature-provider-posthog-v0.1.8

Choose a tag to compare

@github-actions github-actions released this 14 Jul 19:37
Immutable release. Only release title and notes can be modified.
6042885

Patch changes

  • Updated dependencies: posthog@7.22.3

posthog-v7.22.2

Choose a tag to compare

@github-actions github-actions released this 13 Jul 09:01
Immutable release. Only release title and notes can be modified.
b8bd5c8

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

Choose a tag to compare

@github-actions github-actions released this 13 Jul 09:02
Immutable release. Only release title and notes can be modified.
b8bd5c8

Patch changes

  • Updated dependencies: posthog@7.22.2

posthog-v7.22.1

Choose a tag to compare

@github-actions github-actions released this 10 Jul 14:38
Immutable release. Only release title and notes can be modified.
b326113

Patch changes

  • 650d107 Fix local evaluation of flag dependencies with a flag_evaluates_to: false condition: such conditions never matched, forcing the dependent flag to false for every locally-evaluated user. — Thanks @matheus-vb!

openfeature-provider-posthog-v0.1.6

Choose a tag to compare

@github-actions github-actions released this 10 Jul 14:45
Immutable release. Only release title and notes can be modified.
b326113

Patch changes

  • Updated dependencies: posthog@7.22.1