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 host name back under "host.name" key

Christophe Bliardd26432b4e31c
diff --git a/config/initializers/opentelemetry.rb b/config/initializers/opentelemetry.rb
index 9f4e157dc4b..f316fb85c16 100644
--- a/config/initializers/opentelemetry.rb
+++ b/config/initializers/opentelemetry.rb
@@ -54,6 +54,7 @@ Rails.application.configure do
c.resource = OpenTelemetry::SDK::Resources::Resource.create(
{
OpenTelemetry::SemConv::Incubating::DEPLOYMENT::DEPLOYMENT_ENVIRONMENT => Rails.env,
+ OpenTelemetry::SemConv::Incubating::HOST::HOST_NAME => Socket.gethostname,
OpenTelemetry::SemConv::Incubating::SERVICE::SERVICE_INSTANCE_ID => SecureRandom.uuid,
OpenTelemetry::SemConv::Incubating::SERVICE::SERVICE_NAME => OpenProject::OpenTelemetry.process_type,
OpenTelemetry::SemConv::Incubating::SERVICE::SERVICE_NAMESPACE => "openproject",