Setup the new RustSDK sentry integration

This commit is contained in:
Stefan Ceriu
2025-05-23 11:42:26 +03:00
committed by Stefan Ceriu
parent 803e4198ea
commit b3f0c31b9d
9 changed files with 61 additions and 35 deletions
+5 -2
View File
@@ -23,7 +23,10 @@ enum Tracing {
static let fileExtension = "log"
static func buildConfiguration(logLevel: LogLevel, traceLogPacks: Set<TraceLogPack>, currentTarget: String, filePrefix: String?) -> TracingConfiguration {
static func buildConfiguration(logLevel: LogLevel, traceLogPacks: Set<TraceLogPack>,
currentTarget: String,
filePrefix: String?,
sentryURL: URL?) -> TracingConfiguration {
let fileName = if let filePrefix {
"\(Tracing.filePrefix)-\(filePrefix)"
} else {
@@ -46,7 +49,7 @@ enum Tracing {
filePrefix: fileName,
fileSuffix: fileExtension,
maxFiles: maxFiles),
sentryDsn: nil)
sentryDsn: sentryURL?.absoluteString)
}
/// A list of all log file URLs, sorted chronologically. This is only public for testing purposes, within