diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e18a31..98986f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,9 +6,12 @@ on: jobs: full-build: - runs-on: macOS-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v1 + - name: Install Swiftlint + run: | + brew install swiftlint - name: fullbuild.sh run: ./fullbuild.sh diff --git a/SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift b/SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift index d2f70fa..b996d01 100644 --- a/SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift +++ b/SplunkRumCrashReporting/SplunkRumCrashReporting/CrashReporting.swift @@ -124,7 +124,7 @@ func loadPendingCrashReport(_ data: Data!) throws { if report.customData != nil { let customData = NSKeyedUnarchiver.unarchiveObject(with: report.customData) as? [String: String] if customData != nil { - span.setAttribute(key: "crash.rumSessionId", value: customData!["sessionId"]!) + span.setAttribute(key: "crash.sessionId", value: customData!["sessionId"]!) span.setAttribute(key: "crash.batteryLevel", value: customData!["batteryLevel"]!) span.setAttribute(key: "crash.freeDiskSpace", value: customData!["freeDiskSpace"]!) span.setAttribute(key: "crash.freeMemory", value: customData!["freeMemory"]!)