An open API service indexing awesome lists of open source software.

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

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
)
```