https://github.com/zunda-pixel/sentry-swift
Sentry API for Client written in Swift
https://github.com/zunda-pixel/sentry-swift
Last synced: 4 months ago
JSON representation
Sentry API for Client written in Swift
- Host: GitHub
- URL: https://github.com/zunda-pixel/sentry-swift
- Owner: zunda-pixel
- License: apache-2.0
- Created: 2025-06-08T07:09:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-08T17:17:26.000Z (12 months ago)
- Last Synced: 2025-06-08T18:25:45.672Z (12 months ago)
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sentry-swift
Sentry API for Client written in Swift
```swift
import Foundation
import Sentry
let dns = URL(string: "https://111_API_TOKEN_111@o222_ORGANIZATION_ID_222.ingest.us.sentry.io/333_PROJECT_ID_333")!
let client = Client(
dns: dns,
httpClient: .urlSession(.shared)
)!
let event: Event
let log: LogEvent
let error: ErrorEvent
try await client.postLog(
event: event,
log: log,
error: error
)
```