+3
−1
Loading
Having DEFAULT_SERVICE_NAME as a symbol was returning this warning, and because of that instrumentation was not being properly working when a service name wasn't manually provided. ```shell GITLAB_TRACING=otlp://console bin/rails s Unable to instantiate tracer: attribute values must be (array of) strings, integers, floats, or booleans => Booting Puma => Rails 8.0.0 application starting in development => Run `bin/rails server --help` for more startup options Puma starting in single mode... * Puma version: 7.2.0 ("On The Corner") * Ruby version: ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [arm64-darwin25] * Min threads: 3 * Max threads: 3 * Environment: development * PID: 45405 * Listening on http://127.0.0.1:3000 * Listening on http://[::1]:3000 * Listening on http://127.4.21.72:3000 Use Ctrl-C to stop Started GET "/endpoint1" for ::1 at 2026-02-16 12:11:31 +0100 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='TracingSampleApp'*/ Processing by TraceTestController#endpoint1 as */* Started GET "/endpoint2" for ::1 at 2026-02-16 12:11:31 +0100 Processing by TraceTestController#endpoint2 as */* Started GET "/endpoint3" for ::1 at 2026-02-16 12:11:31 +0100 Processing by TraceTestController#endpoint3 as */* Completed 200 OK in 517ms (Views: 0.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms) Completed 200 OK in 604ms (Views: 0.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.7ms) Completed 200 OK in 636ms (Views: 0.0ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 1.0ms) ``` This commit fixes it: ```shell GITLAB_TRACING=otlp://console bin/rails s I, [2026-02-16T12:28:16.976538 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::ActiveSupport was successfully installed with the following options {} I, [2026-02-16T12:28:16.978252 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::Rack was successfully installed with the following options {allowed_request_headers: [], allowed_response_headers: [], application: nil, record_frontend_span: false, untraced_endpoints: [], url_quantization: nil, untraced_requests: nil, response_propagators: [], use_rack_events: true, allowed_rack_request_headers: {}, allowed_rack_response_headers: {}} I, [2026-02-16T12:28:16.978876 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::ActionPack was successfully installed with the following options {span_naming: :semconv} I, [2026-02-16T12:28:16.980147 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::ActiveRecord was successfully installed with the following options {} I, [2026-02-16T12:28:16.980345 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::ActionView was successfully installed with the following options {disallowed_notification_payload_keys: [], notification_payload_transform: nil, legacy_span_names: false} I, [2026-02-16T12:28:16.980545 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::ConcurrentRuby was successfully installed with the following options {} I, [2026-02-16T12:28:16.980874 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::Net::HTTP was successfully installed with the following options {untraced_hosts: []} I, [2026-02-16T12:28:16.980904 #49006] INFO -- : Instrumentation: OpenTelemetry::Instrumentation::Rails was successfully installed with the following options {} => Booting Puma => Rails 8.0.0 application starting in development => Run `bin/rails server --help` for more startup options Puma starting in single mode... * Puma version: 7.2.0 ("On The Corner") * Ruby version: ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [arm64-darwin25] * Min threads: 3 * Max threads: 3 * Environment: development * PID: 49006 * Listening on http://127.0.0.1:3000 * Listening on http://[::1]:3000 * Listening on http://127.4.21.72:3000 Use Ctrl-C to stop ```