Skip to content

Adding docs for instrument_openai - #18

Merged
samuelcolvin merged 5 commits into
mainfrom
open-docs
Apr 26, 2024
Merged

samuelcolvin merged 5 commits into
mainfrom
open-docs

Conversation

@samuelcolvin

Copy link
Copy Markdown
Member

No description provided.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 26, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b82427
Status: ✅  Deploy successful!
Preview URL: https://0a08dd53.logfire-docs.pages.dev
Branch Preview URL: https://open-docs.logfire-docs.pages.dev

View logs

@samuelcolvin
samuelcolvin requested review from Kludex and dmontagu April 26, 2024 20:00
Comment thread docs/integrations/openai.md Resolved
Comment thread docs/integrations/openai.md Resolved
When instrumenting streaming responses, Logfire creates two spans — one around the initial request and one
around the streamed response.

Here we also use Rich's [`Live`][rich.live.Live] and [`Markdown`][rich.markdown.Markdown] types to render the response in the terminal in real-time. :dancer:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🕺

@dmontagu dmontagu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great to me.

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
@samuelcolvin
samuelcolvin enabled auto-merge (squash) April 26, 2024 20:31
@samuelcolvin
samuelcolvin merged commit dcafe26 into main Apr 26, 2024
@samuelcolvin
samuelcolvin deleted the open-docs branch April 26, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants