How to manually instrument iOS Applications with OpenTelemetry
In this tutorial, we dive into the practical application of OpenTelemetry in an iOS project built with SwiftUI. We demonstrate how to set up the OpenTelemetry SDK, generate spans, and send them to a configured OpenTelemetry collector.
Our example application displays a random sentence every few seconds. Each sentence generation process is instrumented with OpenTelemetry spans, which include an attribute representing the word count of the sentence.
By following along, you'll gain a practical understanding of distributed tracing and how to leverage OpenTelemetry in your own iOS projects.
Additional Resources:
- Take a deep dive into OpenTelemetry: https://www.elastic.co/what-is/opentelemetry
- Learn more about Elastic Observability solutions: https://www.elastic.co/observability
- Check out this GitHub repo as a companion to this video: https://github.com/davidgeorgehope/Elastiflix-iOS/
Start the 14-day trial for free! No credit card required: https://cloud.elastic.co/registration
Subscribe to Elastic’s Community YT channel: https://www.youtube.com/c/OfficialElasticCommunity
Connect with us on social media:
- LinkedIn: https://www.linkedin.com/company/elastic-co
- Twitter: https://twitter.com/elastic
- Facebook: https://www.facebook.com/elastic.co
About Elastic
Elastic is the leading platform for search-powered solutions, and we help everyone — organizations, their employees, and their customers — find what they need faster, while keeping applications running smoothly, and protecting against cyber threats. When you tap into the power of Elastic Enterprise Search, Observability, and Security solutions, you’re in good company with brands like Netflix, Uber, Slack, Microsoft, and thousands of others who rely on us to accelerate results that matter.
#ElasticObservability #OTel