lib/instana/tracing/span.rb in instana-1.193.5 vs lib/instana/tracing/span.rb in instana-1.193.6
- old
+ new
@@ -4,14 +4,14 @@
module Instana
class Span
REGISTERED_SPANS = [ :actioncontroller, :actionview, :activerecord, :excon,
:memcache, :'net-http', :rack, :render, :'rpc-client',
:'rpc-server', :'sidekiq-client', :'sidekiq-worker',
- :redis, :'resque-client', :'resque-worker', :'graphql.server' ].freeze
+ :redis, :'resque-client', :'resque-worker', :'graphql.server', :dynamodb ].freeze
ENTRY_SPANS = [ :rack, :'resque-worker', :'rpc-server', :'sidekiq-worker', :'graphql.server' ].freeze
EXIT_SPANS = [ :activerecord, :excon, :'net-http', :'resque-client',
- :'rpc-client', :'sidekiq-client', :redis ].freeze
+ :'rpc-client', :'sidekiq-client', :redis, :dynamodb ].freeze
HTTP_SPANS = [ :rack, :excon, :'net-http' ].freeze
attr_accessor :parent
attr_accessor :baggage
attr_accessor :is_root
@@ -285,9 +285,15 @@
@data[:n] == :sdk
end
def inspect
@data.inspect
+ end
+
+ # Check to see if the current span indicates an exit from application
+ # code and into an external service
+ def exit_span?
+ EXIT_SPANS.include?(@data[:n])
end
#############################################################
# OpenTracing Compatibility Methods
#############################################################