Skip to content

add laminar observability example #539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dinmukhamedm
Copy link

why

Laminar is introducing browser observability on top of it's OpenTelemetry-based observability stack tailored to LLM apps. For users who install and initialize Laminar, Stagehand will be instrumented out of the box. In addition (out of scope of this PR), users can do Laminar.wrapStagehand(stagehand) to get session replays alongside.

Example result:
Screenshot 2025-02-28 at 16 41 12

We've already done this for browser-use (a higher-level browser agent in Python) and are now expanding the scope to TypeScript.

what changed

Added an example on how to instrument code using stagehand with Laminar (I couldn't get it to work in the repo though, but it does work when stagehand is installed externally)

test plan

  1. Installed Stagehand locally
  2. Manually tried simple tasks without Laminar.initialize()
  3. Manually tried simple tasks with Laminar.initialize()

Copy link

changeset-bot bot commented Feb 28, 2025

⚠️ No Changeset found

Latest commit: d1d3ccc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@skull8888888
Copy link

Hey @kamath, any thoughts on this?

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