-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
100 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,49 @@ | ||
module Datadog | ||
module Tracing | ||
class Span | ||
attr_accessor span_id: Integer | ||
attr_accessor end_time: (Time | nil) | ||
attr_accessor id: Integer | ||
attr_accessor meta: Hash[String, String] | ||
attr_accessor metrics: Hash[String, Float] | ||
attr_accessor name: String | ||
attr_accessor parent_id: Integer | ||
attr_accessor resource: String | ||
attr_accessor service: (String | nil) | ||
attr_accessor links: Array[untyped] | ||
attr_accessor events: Array[untyped] | ||
attr_accessor type: (String | nil) | ||
attr_accessor start_time: (Time | nil) | ||
attr_accessor status: Integer | ||
attr_accessor trace_id: Integer | ||
attr_writer duration: (Float | nil) | ||
|
||
def set_tag: (String key, ?untyped? value) -> void | ||
def initialize: ( | ||
String name, | ||
?duration: (Float | nil), | ||
?end_time: (Time | nil), | ||
?id: (Integer | nil), | ||
?meta: (Hash[String, String] | nil), | ||
?metrics: (Hash[String, Float] | nil), | ||
?parent_id: Integer, | ||
?resource: String, | ||
?service: (String | nil), | ||
?start_time: (Time | nil), | ||
?status: Integer, | ||
?type: (String | nil), | ||
?trace_id: (Integer | nil), | ||
?service_entry: (bool | nil), | ||
?links: (Array[untyped] | nil), | ||
?events: (Array[untyped] | nil) | ||
) -> void | ||
|
||
def started?: -> bool | ||
def stopped?: -> bool | ||
def duration: -> (Float | nil) | ||
def set_error: (Exception e) -> void | ||
def ==: (Span other) -> bool | ||
def to_s: -> String | ||
def to_hash: -> Hash[Symbol, untyped] | ||
def pretty_print: (PP::Object q) -> void | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters