Repository navigation
posthog-v8.0.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 2eb7b9fa
PostHogSpanProcessorno 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.droppedfrom its attributes, events and links and failed withAttributeError. 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 ininput_tokens_details.cache_write_tokens(Responses) orprompt_tokens_details.cache_write_tokens(Chat Completions) and bills them above the input rate, but the wrapper read onlycached_tokens, so cache writes were costed as plain input tokens. — Thanks @alexeichhorn for your first contribution 🎉!