Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swift-otel/swift-otel
OpenTelemetry client built for Swift observability libraries
https://github.com/swift-otel/swift-otel
distributed-tracing metrics opentelemetry opentelemetry-swift swift swift-distributed-tracing swift-metrics swift-otel tracing
Last synced: 11 minutes ago
JSON representation
OpenTelemetry client built for Swift observability libraries
- Host: GitHub
- URL: https://github.com/swift-otel/swift-otel
- Owner: swift-otel
- License: apache-2.0
- Created: 2020-12-09T14:50:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T12:26:56.000Z (15 days ago)
- Last Synced: 2024-12-29T06:33:46.267Z (9 days ago)
- Topics: distributed-tracing, metrics, opentelemetry, opentelemetry-swift, swift, swift-distributed-tracing, swift-metrics, swift-otel, tracing
- Language: Swift
- Homepage: https://swiftpackageindex.com/swift-otel/swift-otel
- Size: 9.61 MB
- Stars: 84
- Watchers: 9
- Forks: 28
- Open Issues: 17
-
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%2Fswift-otel%2Fswift-otel%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/swift-otel/swift-otel)
[![codecov](https://codecov.io/gh/swift-otel/swift-otel/graph/badge.svg?token=CLBHHQITUY)](https://codecov.io/gh/swift-otel/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.