Skip to content

[Feature]: trace correlation hooks for external observability/replay systems #40887

@TheEleventhAvatar

Description

@TheEleventhAvatar

🚀 Feature Request

Playwright already has excellent tracing/replay tooling internally.

One thing that feels increasingly interesting for agentic/stateful workflows is easier integration with external observability systems (Langfuse, OpenTelemetry, custom trace pipelines, etc.).

Would there be value in exposing lightweight trace-correlation hooks/APIs for:

  • associating Playwright sessions with external trace IDs
  • attaching browser execution metadata to distributed traces
  • replaying frontend execution alongside backend spans/tool calls
  • debugging cross-system divergence in complex workflows

Not suggesting Playwright become an observability platform itself — more about enabling richer external integrations.

Example

No response

Motivation

This feels especially relevant for:

  • AI agents operating through browser environments
  • multi-service E2E workflows
  • non-deterministic state bugs
  • replay-based debugging systems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions