Skip to content

Releases: PostHog/posthog-python

posthog-v7.27.0

Choose a tag to compare

@github-actions github-actions released this 18 Jul 16:39
Immutable release. Only release title and notes can be modified.
2e624d1

Minor changes

  • 5ef2c23 $feature_flag_called events are now minimized for non-experiment flags when the server enables it. When the /flags v2 response (minimalFlagCalledEvents) or the local-evaluation payload (minimal_flag_called_events) reports the gate as enabled and the evaluated flag has no linked experiment (has_experiment is false), the event's properties are reduced to a strict allowlist ($feature_flag, $feature_flag_response, $feature_flag_has_experiment, the $feature_flag_* debug scalars, locally_evaluated, $groups, $process_person_profile, $session_id, $lib, $lib_version, $is_server, $geoip_disable, $os, $os_version, $os_distro, $python_runtime, $python_version). Everything else — including super properties and custom event properties — is stripped from those events.

    If the server does not report the gate, if the flag's has_experiment signal is missing, or if the flag is linked to an experiment, the full property set is sent unchanged. There is no SDK-side configuration; the gate is controlled per-team by the server. For evaluate_flags() snapshots, the gate is pinned when the snapshot is created, so deferred flag accesses are shaped by the evaluation that produced them.

    Custom flag_definition_cache providers now receive an additional minimal_flag_called_events key in the definitions payload, so the gate survives external cache round-trips.

    When the server reports has_experiment for a flag, every $feature_flag_called event also carries a $feature_flag_has_experiment boolean property. — Thanks @haacked!

openfeature-provider-posthog-v0.1.14

Choose a tag to compare

@github-actions github-actions released this 18 Jul 16:41
Immutable release. Only release title and notes can be modified.
2e624d1

Patch changes

  • Updated dependencies: posthog@7.27.0

posthog-v7.26.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 12:53
Immutable release. Only release title and notes can be modified.
6c90cff

Minor changes

  • 1653bcb Add a label option to Prompts.get() to fetch the prompt version a label (e.g. production) currently points to. Labeled fetches are cached separately, and PromptResult carries the resolved label. Requires a PostHog version with prompt labels; older servers ignore the parameter and return the latest version. — Thanks @jurajmajerik!

openfeature-provider-posthog-v0.1.13

Choose a tag to compare

@github-actions github-actions released this 17 Jul 12:54
Immutable release. Only release title and notes can be modified.
6c90cff

Patch changes

  • Updated dependencies: posthog@7.26.0

posthog-v7.25.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 12:11
Immutable release. Only release title and notes can be modified.
9bf7487

Minor changes

  • 5ab6318 Add the active OpenTelemetry span's $trace_id and $span_id to events captured with capture_exception. — Thanks @hpouillot!

openfeature-provider-posthog-v0.1.12

Choose a tag to compare

@github-actions github-actions released this 16 Jul 12:12
Immutable release. Only release title and notes can be modified.
9bf7487

Patch changes

  • Updated dependencies: posthog@7.25.0

posthog-v7.24.0

Choose a tag to compare

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

Minor changes

  • 556c134 $feature_flag_called events now carry a $feature_flag_has_experiment boolean property when the server reports whether the flag is linked to an experiment. When the server does not report the signal (older deployments), the property is omitted. — Thanks @haacked!

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.11

Choose a tag to compare

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

Patch changes

  • Updated dependencies: posthog@7.24.0

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