open-telemetry / opentelemetry-js-contrib

OpenTelemetry instrumentation for JavaScript modules
https://opentelemetry.io
Apache License 2.0
643 stars 484 forks source link

Supporting rrweb as plugin #1880

Open Doron-Bargo opened 6 months ago

Doron-Bargo commented 6 months ago

rrweb is an open-source JavaScript library for recording and replaying user sessions in web applications. It captures user interactions and allows developers to replay them, providing valuable insights into user behavior and facilitating efficient debugging.

The addition of rrweb support to OpenTelemetry would provide invaluable insights into user interactions, helping developers to better understand and reproduce user sessions. By seamlessly integrating rrweb with OpenTelemetry, we can bridge the gap between performance monitoring and user behavior analysis.

Benefits:

Comprehensive Observability: Combining rrweb with OpenTelemetry will enable developers to correlate user interactions with performance metrics, creating a comprehensive view of application behavior.

Efficient Debugging: The ability to replay user sessions captured by rrweb alongside OpenTelemetry traces will significantly expedite debugging processes, allowing developers to quickly identify and resolve issues.

Potential Use Cases:

Error Reproduction: Developers can use rrweb recordings to reproduce user interactions leading up to an error, facilitating efficient debugging and issue resolution.

Performance Optimization: Identify performance bottlenecks by analyzing rrweb recordings in conjunction with OpenTelemetry traces, allowing for targeted optimizations.

User Flow Analysis: Gain insights into how users navigate through the application by analyzing rrweb recordings alongside telemetry data, aiding in the optimization of user flows.

zhangjiabin1010 commented 2 months ago

This is useful.

jawadqur commented 1 week ago

+1 - this would be awesome to have.