Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Instrumentation of view components for appsignal

Oliver Günther412c200a285d
diff --git a/config/initializers/view_component.rb b/config/initializers/view_component.rb
index dbdaa2a1743..c894e61fdda 100644
--- a/config/initializers/view_component.rb
+++ b/config/initializers/view_component.rb
@@ -2,6 +2,10 @@ Rails.application.configure do
config.view_component.generate.preview_path = Rails.root.join("spec/components/previews").to_s
config.view_component.preview_paths << Rails.root.join("spec/components/previews").to_s
+ # Enable instrumentation (e.g., for AppSignal)
+ config.view_component.instrumentation_enabled = true
+ config.view_component.use_deprecated_instrumentation_name = false
+
config.view_component.generate.preview = true
config.view_component.default_preview_layout = "component_preview"
end