Skip to content

Conversation

@andrewm4894
Copy link
Member

Summary

Add onboarding content for OpenAI Agents SDK integration with PostHog LLM analytics.

Changes

  • docs/onboarding/llm-analytics/openai-agents.tsx - installation guide

Covers:

  • Basic setup with instrument() helper
  • Multi-agent workflows with handoffs
  • Tool/function call tracking

Related

Add onboarding content for OpenAI Agents SDK integration with PostHog
LLM analytics. Covers basic setup, multi-agent workflows, and tool usage.
@github-actions
Copy link
Contributor

Docs from this PR will be published at posthog.com

Project Deployment Preview Updated (UTC)
posthog.com 🤷 Unknown Preview Jan 14, 2026, 8:49 PM

Preview will be ready in ~10 minutes. Click Preview link above to access docs at /handbook/engineering/

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e87695f2ef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +6 to +9
Step,
CodeBlock,
CalloutBox,
ProductScreenshot,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove unused CalloutBox destructure

The CalloutBox entry is destructured from useMDXComponents() but never used in this file. Because tsconfig.json enables noUnusedLocals and includes docs/onboarding/**/*, this will fail the TypeScript check (e.g., pnpm --filter=@posthog/frontend typescript:check) and block the build. Either remove CalloutBox from the destructuring or add a usage.

Useful? React with 👍 / 👎.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Steps,
Step,
CodeBlock,
CalloutBox,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: CalloutBox is imported but never used. Consider removing it or adding a "Proxy note" callout similar to other LLM integration docs to clarify that PostHog doesn't proxy calls.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/onboarding/llm-analytics/openai-agents.tsx
Line: 8:8

Comment:
**style:** `CalloutBox` is imported but never used. Consider removing it or adding a "Proxy note" callout similar to other LLM integration docs to clarify that PostHog doesn't proxy calls.

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/llm-analytics LLM Analytics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants