Swiftpack.co - slashmo/swift-otel as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by slashmo.
slashmo/swift-otel 0.8.1
OpenTelemetry client built for server-side Swift
⭐️ 55
🕓 7 weeks ago
macOS
.package(url: "https://github.com/slashmo/swift-otel.git", from: "0.8.1")

Swift OTel

An OpenTelemetry client for server-side Swift.

codecov

Examples

Swift OTel comes with a couple examples to demonstrate how to get started and how to get beyond the basics:

Example 1: Counter

This example contains an endless running service that keeps counting up a number after a randomized delay. The increments are traced and exported to Jaeger.

Example 2: Server

An example HTTP server built using Hummingbird and its middleware for Metrics and Distributed Tracing. Each incoming request is automatically instrumented with a span and metrics such as the request duration are recorded. Both metrics and traces are sent to an OTel Collector via Swift OTel.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics