Skip to content

posthog-v8.0.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:09
Immutable release. Only release title and notes can be modified.
933c3c7

Patch changes

  • 2eb7b9fa PostHogSpanProcessor no longer breaks export of spans started inside a PostHog context on opentelemetry-sdk 1.20 and 1.21. The span copy that carries the context's distinct ID, session ID and tags held plain dicts and tuples, but those SDK versions' OTLP encoder reads .dropped from its attributes, events and links and failed with AttributeError. The copy now also keeps the counts of attributes, events and links the SDK dropped under its span limits, which it previously reported as 0. — Thanks @fahad2932 for your first contribution 🎉!
  • ac6a5df4 posthog.ai.openai: report OpenAI cache-write tokens as $ai_cache_creation_input_tokens, for streaming and non-streaming calls. OpenAI reports them in input_tokens_details.cache_write_tokens (Responses) or prompt_tokens_details.cache_write_tokens (Chat Completions) and bills them above the input rate, but the wrapper read only cached_tokens, so cache writes were costed as plain input tokens. — Thanks @alexeichhorn for your first contribution 🎉!