github DataDog/dd-sdk-ios 1.3.0-beta1

latest releases: 2.10.1, 2.10.0, 2.9.0...
pre-release3 years ago

Features

  • This release brings the -beta1 version of Distributed Tracing for iOS apps ⭐. From now, you'll be able to send traces to Datadog and let us visualise the timings of your code execution. If you're using Datadog instrumentation on backend, this also includes full-stack trace propagation.

Instantiate DDTracer:

import Datadog
import OpenTracing

Global.sharedTracer = DDTracer.initialize(
    configuration: DDTracer.Configuration(
        sendNetworkInfo: true
    )
)

and start instrumenting your code:

let span = Global.sharedTracer.startSpan(operationName: "something I measure")
// do something you want to measure ...
// ... then, when the operation is finished:
span.finish()

Read more in iOS Trace Collection guide.

Improvements

  • typealias DDLogger = Datadog.Logger is introduced, to help avoiding compiler ambiguity in projects defining their own Logger class (#143), solves #127 and #142 (thanks @krzysztofzablocki , @amyslies)

Don't miss a new dd-sdk-ios release

NewReleases is sending notifications on new releases.