Loading lib/labkit/tracing/rails/active_record/sql_instrumenter.rb +2 −2 Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ module Labkit module Tracing module Rails module ActiveRecord # For more information on the payloads: https://guides.rubyonrails.org/active_support_instrumentation.html class SqlInstrumenter < AbstractInstrumenter OPERATION_NAME_PREFIX = "active_record:" DEFAULT_OPERATION_NAME = "sqlquery" # For more information on the payloads: https://guides.rubyonrails.org/active_support_instrumentation.html class SqlInstrumenter < AbstractInstrumenter def span_name(payload) OPERATION_NAME_PREFIX + (payload[:name].presence || DEFAULT_OPERATION_NAME) end Loading Loading
lib/labkit/tracing/rails/active_record/sql_instrumenter.rb +2 −2 Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ module Labkit module Tracing module Rails module ActiveRecord # For more information on the payloads: https://guides.rubyonrails.org/active_support_instrumentation.html class SqlInstrumenter < AbstractInstrumenter OPERATION_NAME_PREFIX = "active_record:" DEFAULT_OPERATION_NAME = "sqlquery" # For more information on the payloads: https://guides.rubyonrails.org/active_support_instrumentation.html class SqlInstrumenter < AbstractInstrumenter def span_name(payload) OPERATION_NAME_PREFIX + (payload[:name].presence || DEFAULT_OPERATION_NAME) end Loading