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

add resource info

Oliver Günther7f0c7a95b739
diff --git a/config/initializers/opentelemetry.rb b/config/initializers/opentelemetry.rb
index 5f393d176be..db6b13476f0 100644
--- a/config/initializers/opentelemetry.rb
+++ b/config/initializers/opentelemetry.rb
@@ -48,6 +48,15 @@ Rails.application.configure do
OpenTelemetry::Exporter::OTLP::Exporter.new
)
)
+
+ c.resource = OpenTelemetry::SDK::Resources::Resource.create(
+ {
+ "deployment.environment" => Rails.env,
+ "service.namespace" => "openproject",
+ "service.instance.id" => Socket.gethostname
+ }
+ )
+
c.use_all
end