Skip to content

Commit

Permalink
Add Sentry tagging for engine plugins
Browse files Browse the repository at this point in the history
The change introduces Sentry tagging for engine plugins in the ArcusCommunication module. This enhancement aids in better tracking and debugging by attaching the plugin's name and version as tags for Sentry logging. This tagging will be enabled only when the SENTRY_URL is defined.

Contribute to CURA-11482
  • Loading branch information
jellespijker committed Dec 17, 2023
1 parent d3f5756 commit fb98c23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/communication/ArcusCommunication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ void ArcusCommunication::sliceNext()
{
const auto slot_id = static_cast<plugins::v0::SlotID>(plugin.id());
slots::instance().connect(slot_id, plugin.plugin_name(), plugin.plugin_version(), utils::createChannel({ plugin.address(), plugin.port() }));
#ifdef SENTRY_URL
sentry_set_tag(fmt::format("engine_plugin.{}", plugin.plugin_name()).c_str(), plugin.plugin_version().c_str());
#endif
}
#endif // ENABLE_PLUGINS

Expand Down

0 comments on commit fb98c23

Please sign in to comment.