Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slashmo/swift-otel
OpenTelemetry client built for server-side Swift
https://github.com/slashmo/swift-otel
distributed-tracing metrics opentelemetry opentelemetry-swift swift swift-distributed-tracing swift-metrics swift-otel tracing
Last synced: about 1 month ago
JSON representation
OpenTelemetry client built for server-side Swift
- Host: GitHub
- URL: https://github.com/slashmo/swift-otel
- Owner: slashmo
- License: apache-2.0
- Created: 2020-12-09T14:50:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T13:34:36.000Z (3 months ago)
- Last Synced: 2024-10-25T06:06:23.496Z (2 months ago)
- Topics: distributed-tracing, metrics, opentelemetry, opentelemetry-swift, swift, swift-distributed-tracing, swift-metrics, swift-otel, tracing
- Language: Swift
- Homepage: https://swiftpackageindex.com/slashmo/swift-otel
- Size: 9.5 MB
- Stars: 70
- Watchers: 10
- Forks: 23
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Swift OTel
An [OpenTelemetry](https://opentelemetry.io) client for server-side Swift.
[![Swift Package Index](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fslashmo%2Fswift-otel%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/slashmo/swift-otel)
[![codecov](https://codecov.io/gh/slashmo/swift-otel/graph/badge.svg?token=CLBHHQITUY)](https://codecov.io/gh/slashmo/swift-otel)## Examples
Swift OTel comes with a couple examples to demonstrate how to get started and how to go beyond the basics:
### Example 1: [Counter](./Examples/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](https://jaegertracing.io).### Example 2: [Server](./Examples/Server)
An example HTTP server built using [Hummingbird](https://github.com/hummingbird-project/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.