-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
040773c
commit 622305a
Showing
16 changed files
with
146 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ target :lib do | |
library "open3" | ||
library "rspec" | ||
library "cucumber" | ||
library "msgpack" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# frozen_string_literal: true | ||
# # frozen_string_literal: true | ||
|
||
module Datadog | ||
module CI | ||
module Transport | ||
class HTTP | ||
def initialize | ||
end | ||
end | ||
end | ||
end | ||
end | ||
# module Datadog | ||
# module CI | ||
# module Transport | ||
# class HTTP | ||
# def initialize | ||
# end | ||
# end | ||
# end | ||
# end | ||
# end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Datadog | ||
module CI | ||
module TestVisibility | ||
module Serializers | ||
def self?.convert_trace_to_serializable_events: (Datadog::Tracing::TraceSegment trace) -> untyped | ||
def self?.convert_span_to_serializable_event: (Datadog::Tracing::TraceSegment trace, Datadog::Tracing::Span span) -> untyped | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module Datadog | ||
module CI | ||
module TestVisibility | ||
module Serializers | ||
class Base | ||
@content_fields_count: Integer | ||
|
||
attr_reader trace: Datadog::Tracing::TraceSegment | ||
attr_reader span: Datadog::Tracing::Span | ||
|
||
def initialize: (Datadog::Tracing::TraceSegment trace, Datadog::Tracing::Span span) -> void | ||
|
||
def to_msgpack: (?untyped? packer) -> untyped | ||
|
||
def content_fields: () -> ::Array[String | Hash[String, String]] | ||
|
||
def runtime_id: () -> String | ||
|
||
def trace_id: () -> String | ||
|
||
def span_id: () -> String | ||
|
||
def parent_id: () -> String | ||
|
||
def type: () -> nil | ||
|
||
def version: () -> 1 | ||
|
||
def span_type: () -> String | ||
|
||
def name: () -> String | ||
|
||
def resource: () -> String | ||
|
||
def service: () -> String | ||
|
||
def start: () -> Integer | ||
|
||
def duration: () -> Integer | ||
|
||
def meta: () -> Hash[String, untyped] | ||
|
||
def metrics: () -> Hash[String, untyped] | ||
|
||
def error: () -> Integer | ||
|
||
private | ||
|
||
def write_field: (untyped packer, String field_name, ?String? method) -> untyped | ||
def time_nano: (Time time) -> Integer | ||
def duration_nano: (Integer duration) -> Integer | ||
|
||
def content_fields_count: () -> Integer | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Datadog | ||
module CI | ||
module TestVisibility | ||
module Serializers | ||
class Span < Base | ||
@content_fields: Array[String | Hash[String, String]] | ||
def content_fields: () -> Array[String | Hash[String, String]] | ||
|
||
def type: () -> "span" | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Datadog | ||
module CI | ||
module TestVisibility | ||
module Serializers | ||
class TestV1 < Base | ||
@content_fields: Array[String | Hash[String, String]] | ||
def content_fields: () -> Array[String | Hash[String, String]] | ||
|
||
def type: () -> "test" | ||
|
||
def name: () -> ::String | ||
|
||
def resource: () -> ::String | ||
end | ||
end | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module MessagePack | ||
class Packer | ||
def initialize: () -> void | ||
|
||
def write: (String input) -> self | ||
def write_map_header: (Integer keys_number) -> self | ||
def write_array_header: (Integer keys_number) -> self | ||
end | ||
end |