vaadin / observability-kit

Other
5 stars 3 forks source link

Check for `flow-data` dependency #214

Closed MatthewVaadin closed 1 year ago

MatthewVaadin commented 1 year ago

Description

If the agent is attached to a Hilla-only application, the Vaadin-specific instrumentation fails to be loaded. This is because it uses the flow-data dependency, which is not used by Hilla.

This introduces a check so that the flow data instrumentation is not added unless the com.vaadin.flow.data.provider.DataCommunicator class is found.