Description
Swift OTel is an OpenTelemetry Protocol (OTLP) backend for Swift programs. It sends the logs, metrics and traces produced through three Swift APIs, swift-log for logging, swift-metrics for metrics and swift-distributed-tracing for tracing, on to an OTLP receiver. You set it up with a bootstrap call, and the value that call returns conforms to Service, so it can run inside a ServiceGroup alongside your other services. If another dependency has its own way to run additional services, you can use that instead, and the README shows an example with the Hummingbird web framework. The package does not provide an OpenTelemetry instrumentation API or a general-purpose OTel SDK. It is a backend for the Swift logging, metrics and tracing APIs. Documentation is on the Swift Package Index, and the repository has example projects in its Examples directory. Swift OTel is licensed under Apache 2.0 and its source is on GitHub.…
Highlights
- OTLP backend for Swift Log, Metrics and Tracing
- Runs as a Swift Service Lifecycle service
- Example with the Hummingbird framework
- Example projects in the repository
- Apache 2.0 license
Ratings & Reviews
No ratings yet
Be the first to rate Swift Otel.
People also visit
Fastapi Observability
Observe FastAPI app with three pillars of observability: Traces
Otelbin
Web-based tool to facilitate OpenTelemetry collector configuration editing and

traceloop/opentelemetry-mcp-server
Connect to any OpenTelemetry backend, such as Datadog, Grafana
Swift Otel FAQ
What is Swift OTel?
An OpenTelemetry Protocol backend for the Swift Log, Swift Metrics and Swift Distributed Tracing APIs, so a Swift program can send that data to an OTLP receiver.
Does it instrument my code for me?
No. The project says it does not provide an OpenTelemetry instrumentation API or a general-purpose OTel SDK.
How do I get started?
Add the package dependencies to your package and target, then use the bootstrap API. The README has a quickstart with the steps.
Does it work with Swift Service Lifecycle?
Yes. The value returned from the bootstrap API conforms to Service, so it can run inside a ServiceGroup.
What license is it under?
Apache 2.0, which is repeated in the LICENSE file in the repository.
What are the best Swift Otel alternatives?
Popular alternatives to Swift Otel include Venator, Fastapi Observability and Spring Boot Observability. See all Swift Otel alternatives








