Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Flinky.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@
repositoryURL = "https://github.com/getsentry/sentry-cocoa";
requirement = {
kind = exactVersion;
version = 9.3.0;
version = 9.4.0;
};
};
D4CFD1772E1E38F2001447E9 /* XCRemoteSwiftPackageReference "SFSafeSymbols" */ = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: OnLaunch-iOS-Client, nameSpecified: OnLaunch-iOS-Client, owner: kula-app, version: 0.0.6, source: https://github.com/kula-app/OnLaunch-iOS-Client

name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.3.0, source: https://github.com/getsentry/sentry-cocoa
name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.4.0, source: https://github.com/getsentry/sentry-cocoa

name: SFSafeSymbols, nameSpecified: SFSafeSymbols, owner: SFSafeSymbols, version: 7.0.0, source: https://github.com/SFSafeSymbols/SFSafeSymbols

name: OnLaunch-iOS-Client, nameSpecified: OnLaunch-iOS-Client, owner: kula-app, version: 0.0.6, source: https://github.com/kula-app/OnLaunch-iOS-Client

name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.3.0, source: https://github.com/getsentry/sentry-cocoa
name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.4.0, source: https://github.com/getsentry/sentry-cocoa

name: SFSafeSymbols, nameSpecified: SFSafeSymbols, owner: SFSafeSymbols, version: 7.0.0, source: https://github.com/SFSafeSymbols/SFSafeSymbols

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<key>File</key>
<string>Licenses/sentry-cocoa</string>
<key>Title</key>
<string>Sentry (9.3.0)</string>
<string>Sentry (9.4.0)</string>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
</dict>
Expand Down
56 changes: 9 additions & 47 deletions Targets/App/Sources/Utils/SentryMetricsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "memory.warning.received",
value: 1,
unit: .generic("warning"),
attributes: [
"cache_size_at_warning": String(cacheSizeAtWarning),
"app_state": appState
Expand All @@ -59,7 +58,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "device.thermal.transition",
value: 1,
unit: .generic("transition"),
attributes: [
"from_state": fromState,
"to_state": toState,
Expand Down Expand Up @@ -92,7 +90,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "network.reachability.changed",
value: 1,
unit: .generic("transition"),
attributes: [
"status": status,
"interface": interfaceType,
Expand All @@ -118,7 +115,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "app.state.transition",
value: 1,
unit: .generic("transition"),
attributes: [
"to_state": toState,
"from_state": fromState
Expand All @@ -138,7 +134,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "background.task.completed",
value: 1,
unit: .generic("task"),
attributes: [
"task_type": taskType,
"task_identifier": taskIdentifier
Expand All @@ -154,7 +149,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "background.task.expired",
value: 1,
unit: .generic("task"),
attributes: [
"task_type": taskType,
"time_remaining": String(format: "%.1f", timeRemaining)
Expand Down Expand Up @@ -190,7 +184,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.created",
value: 1,
unit: .generic("link"),
attributes: [
"creation_flow": creationFlow,
"entity_type": "link",
Expand All @@ -209,7 +202,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "list.created",
value: 1,
unit: .generic("list"),
attributes: [
"creation_flow": creationFlow,
"entity_type": "list",
Expand All @@ -228,7 +220,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.shared",
value: 1,
unit: .generic("share"),
attributes: [
"sharing_method": sharingMethod,
"link_id": linkId
Expand All @@ -242,7 +233,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.shared.nfc",
value: 1,
unit: .generic("share"),
attributes: [
"sharing_method": "nfc",
"link_id": linkId
Expand All @@ -261,7 +251,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: metricKey,
value: 1,
unit: .generic("selection"),
attributes: [
"color": color,
"entity_type": entityType
Expand All @@ -278,7 +267,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: metricKey,
value: 1,
unit: .generic("selection"),
attributes: [
"symbol": symbol,
"entity_type": entityType
Expand All @@ -293,16 +281,14 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "feedback.form.opened",
value: 1,
unit: .generic("interaction")
)
}

/// Tracks feedback form closing.
static func trackFeedbackFormClosed() {
SentrySDK.metrics.count(
key: "feedback.form.closed",
value: 1,
unit: .generic("interaction")
value: 1
)
}

Expand All @@ -312,17 +298,15 @@ enum SentryMetricsHelper {
static func trackDatabaseSeedingStarted() {
SentrySDK.metrics.count(
key: "database.seeding.started",
value: 1,
unit: .generic("operation")
value: 1
)
}

/// Tracks database seeding completion.
static func trackDatabaseSeedingCompleted() {
SentrySDK.metrics.count(
key: "database.seeding.completed",
value: 1,
unit: .generic("operation")
value: 1
)
}

Expand Down Expand Up @@ -352,17 +336,15 @@ enum SentryMetricsHelper {
static func trackQRCodeCacheHit() {
SentrySDK.metrics.count(
key: "qr_code.cache.hit",
value: 1,
unit: .generic("hit")
value: 1
)
}

/// Tracks QR code cache miss.
static func trackQRCodeCacheMiss() {
SentrySDK.metrics.count(
key: "qr_code.cache.miss",
value: 1,
unit: .generic("miss")
value: 1
)
}

Expand All @@ -372,7 +354,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "qr_code.cache.eviction",
value: 1,
unit: .generic("eviction"),
attributes: [
"reason": reason
]
Expand All @@ -397,7 +378,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.metadata.fetched",
value: 1,
unit: .generic("fetch"),
attributes: [
"outcome": outcome,
"has_image": String(hasImage),
Expand Down Expand Up @@ -430,7 +410,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "error.rate",
value: 1,
unit: .generic("error"),
attributes: [
"error_type": errorType
]
Expand Down Expand Up @@ -488,7 +467,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "search.performed",
value: 1,
unit: .generic("search"),
attributes: [
"search_context": searchContext,
"result_count": String(resultCount)
Expand Down Expand Up @@ -517,17 +495,15 @@ enum SentryMetricsHelper {
static func trackListPinned() {
SentrySDK.metrics.count(
key: "list.pinned",
value: 1,
unit: .generic("action")
value: 1
)
}

/// Tracks list unpinning action.
static func trackListUnpinned() {
SentrySDK.metrics.count(
key: "list.unpinned",
value: 1,
unit: .generic("action")
value: 1
)
}

Expand All @@ -537,7 +513,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "list.deleted",
value: 1,
unit: .generic("deletion"),
attributes: [
"link_count": String(linkCount)
]
Expand All @@ -550,7 +525,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "list.deleted.bulk",
value: 1,
unit: .generic("deletion"),
attributes: [
"count": String(count)
]
Expand All @@ -565,7 +539,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.deleted",
value: 1,
unit: .generic("deletion"),
attributes: [
"list_link_count": String(listLinkCount)
]
Expand All @@ -580,7 +553,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.deleted.bulk",
value: 1,
unit: .generic("deletion"),
attributes: [
"count": String(count),
"list_id": listId
Expand All @@ -602,7 +574,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "link.opened",
value: 1,
unit: .generic("interaction"),
attributes: attributes
)
}
Expand All @@ -619,7 +590,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "share_extension.opened",
value: 1,
unit: .generic("interaction"),
attributes: attributes
)
}
Expand All @@ -632,7 +602,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "share_extension.completed",
value: 1,
unit: .generic("completion"),
attributes: [
"list_selected": String(listSelected),
"name_edited": String(nameEdited)
Expand All @@ -646,7 +615,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "share_extension.cancelled",
value: 1,
unit: .generic("cancellation"),
attributes: [
"step": step
]
Expand All @@ -660,17 +628,15 @@ enum SentryMetricsHelper {
static func trackNFCShareInitiated() {
SentrySDK.metrics.count(
key: "nfc.share.initiated",
value: 1,
unit: .generic("share")
value: 1
)
}

/// Tracks successful NFC share.
static func trackNFCShareSuccess() {
SentrySDK.metrics.count(
key: "nfc.share.success",
value: 1,
unit: .generic("share")
value: 1
)
}

Expand All @@ -684,7 +650,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "nfc.share.failed",
value: 1,
unit: .generic("share"),
attributes: attributes
)
}
Expand All @@ -698,7 +663,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "nfc.operation.performed",
value: 1,
unit: .generic("operation"),
attributes: [
"operation": operation,
"tag_type": tagType,
Expand Down Expand Up @@ -754,7 +718,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "spotlight.item.indexed",
value: UInt(count),
unit: .generic("item"),
attributes: [
"content_type": contentType
]
Expand All @@ -769,7 +732,6 @@ enum SentryMetricsHelper {
SentrySDK.metrics.count(
key: "spotlight.search.performed",
value: 1,
unit: .generic("search"),
attributes: [
"result_count_bucket": resultCountBucket,
"query_source": querySource
Expand Down
Loading
Loading