Skip to content

Embedding requests are not shown in LLM observability due to non-standard property names #301

@srleom

Description

@srleom

When using AsyncOpenAI.embeddings.create with the PostHog Python SDK, embedding requests are logged as openai_embedding events with properties like AI input (LLM) and AI Trace ID (LLM). However, these events do not appear in the LLM observability dashboard, which expects properties like llm_input, llm_output, and llm_type.

Expected behavior:
Embedding events should use the same property names as other LLM traces so they appear in LLM observability by default.

Current workaround:
Manually capturing a llm_trace event with the expected property names after each embedding request.

Versions:

posthog-python: 6.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions