Class: OpenTracing::Instrumentation::Rack::StaticCommandNameBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/opentracing/instrumentation/rack/static_command_name_builder.rb

Overview

StaticCommandNameBuilder build static command_name

Constant Summary collapse

DEFAULT_COMMAND_NAME =
'rack'

Instance Method Summary collapse

Constructor Details

#initialize(command_name: DEFAULT_COMMAND_NAME) ⇒ StaticCommandNameBuilder

Returns a new instance of StaticCommandNameBuilder.



10
11
12
13
14
# File 'lib/opentracing/instrumentation/rack/static_command_name_builder.rb', line 10

def initialize(
  command_name: DEFAULT_COMMAND_NAME
)
  @command_name = command_name
end

Instance Method Details

#build_command_name(_env) ⇒ Object



16
17
18
# File 'lib/opentracing/instrumentation/rack/static_command_name_builder.rb', line 16

def build_command_name(_env)
  @command_name
end