grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
688 stars 62 forks source link

Support Otel Metrics #520

Open MrCrunchwrap opened 3 months ago

MrCrunchwrap commented 3 months ago

Description

I've been incorporating Faro into some observability work lately, and it's fantastic! One thing I've been curious about is the ability to translate Faro data to Open Telemetry, which eventually pointed me towards the OTLP transport.

https://github.com/grafana/faro-web-sdk/tree/main/experimental/transport-otlp-http seems to be a great solution for sending Faro data to Open Telemetry collectors, but it doesn't support Metrics very well. I was wondering if Faro has any plans to create APIs that could be more closely matched to Otel metrics?

Proposed solution

Add functions to the SDK that more closely match what is available in Open Telemetry

Context

N/A

codecapitano commented 3 months ago

Hey @MrCrunchwrap

Thanks a lot for the good feedback and the feature requests as well. 🙏 Yes we definitely need metrics support in the OTLP transporter.

Though it'll be likely a stripped down format. For example we may not be able to derive proper aggregation types for example.

I can not promise when we are able to tackle it because of conflicting priorities. I'll keep you updated.

Cheers, Marco

cc @cedricziel