-
Notifications
You must be signed in to change notification settings - Fork 3
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
382818a
commit d2926be
Showing
12 changed files
with
76 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import Foundation | ||
|
||
struct ConfidenceMetadata { | ||
private static let sdkName: String = "SDK_ID_SWIFT_CONFIDENCE" | ||
private static let sdkId: Int = 13 // TODO enstablish cross-language identifiers | ||
|
||
public var id: Int | ||
public var name: String | ||
public var version: String | ||
|
||
public init(name: String, version: String) { | ||
self.name = name | ||
self.version = version | ||
} | ||
public static let defaultMetadata = ConfidenceMetadata( | ||
id: sdkId, | ||
name: sdkName, | ||
version: "1.0.1") // x-release-please-version | ||
} |
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,5 +1,23 @@ | ||
import Foundation | ||
|
||
struct TelemetryPayload: Encodable { | ||
var staleAccess = 0 | ||
var libraryId: Int | ||
var libraryVersion: String | ||
var countTraces: [CountTrace] | ||
var durationsTraces: [DurationsTrace] | ||
} | ||
|
||
struct CountTrace: Encodable { | ||
var traceId: TraceId | ||
var count: Int | ||
} | ||
|
||
struct DurationsTrace: Encodable { | ||
var traceId: TraceId | ||
var millisDuration: [Int] | ||
} | ||
|
||
enum TraceId: Int, Encodable { | ||
case typeMismatch = 1 | ||
case staleAccess = 2 | ||
} |
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
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