stagehand icon indicating copy to clipboard operation
stagehand copied to clipboard

add laminar observability example

Open dinmukhamedm opened this issue 1 year ago • 2 comments

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()

dinmukhamedm avatar Feb 28 '25 11:02 dinmukhamedm

⚠️ No Changeset found

Latest commit: 884183025d9d96a7c049e193fa240321a970afcf

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.

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

changeset-bot[bot] avatar Feb 28 '25 11:02 changeset-bot[bot]

Hey @kamath, any thoughts on this?

skull8888888 avatar Mar 18 '25 19:03 skull8888888