lib/instana/tracing/span.rb in instana-0.12.1 vs lib/instana/tracing/span.rb in instana-0.13.1
- old
+ new
@@ -12,9 +12,21 @@
def parent_id
@data[:p]
end
+ def name
+ if custom?
+ @data[:data][:sdk][:name]
+ else
+ @data[:n]
+ end
+ end
+
+ def duration
+ @data[:d]
+ end
+
def is_root?
@data[:s] == @data[:t]
end
def [](key)