[Observability UIs] Simplify shared telemetry hooks #60505
Labels
Feature:Logs UI
Logs UI feature
Feature:Metrics UI
Metrics UI feature
Team:Observability
Team label for Observability Team (for things that are handled across all of observability)
We currently have a two function call telemetry hook setup, e.g.:
In #58018, we discussed a lot of interesting ways we could improve this with React context, but for now we settled on simplifying down to a single hook call per event.
We can pass that function to a generic component if needed:
We should also still expose a generic
useTrackEvent
hook that still takes theapp
value directly, in case that's needed.The text was updated successfully, but these errors were encountered: