Skip to content

Releases: DataDog/dd-sdk-ios

1.3.0-beta1

19 Jun 14:07
7e3199e
Compare
Choose a tag to compare
1.3.0-beta1 Pre-release
Pre-release

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)

1.2.2

12 Jun 14:14
Compare
Choose a tag to compare

Bug Fixes

1.2.1

09 Jun 08:26
Compare
Choose a tag to compare

Bug Fixes

  • Fixed ISO8601DateFormatter crash on iOS 11.0 and iOS 11.1 - the milliseconds precision won't be available on iOS 11.0 and iOS 11.1 till next regular release (#129), solves #126 (thanks @lgaches, @Britton-Earnin)

1.2.0

22 May 10:33
b543a3d
Compare
Choose a tag to compare

Features

  • The serviceName default value is changed to app bundle identifier + can be customized globally (#102)

Bug Fixes

Improvements

Other Changes

  • The in-build source value was changed from mobile to ios (#111)
  • Package.swift is updated to link the SDK as dynamic framework (#82)

Upgrade Steps

Datadog.Configuration builder now requires the environment value to be passed along with clientToken:

Datadog.Configuration
    .builderUsing(clientToken: "<client-token>", environment: "<environment>")
See details

What can I use the environment for?

This will enable you to filter data from different environments (staging | production | ...) by using env: filter on app.datadoghq.com. If you don't have diversed environments, "production" might be a good default.

Eventual Breaking Changes in Dashboards and Pipelines

If any of your app.datadoghq.com dashboards or pipelines depends on service or source attribute, you may need to update them.

See details

New default value for service attribute

If you were not using .set(serviceName:) to explicitly set the service for Logger.builder the default value of "ios" was used. In 1.2.0, this default is changed to application bundle identifier. If your dashboards depend on "ios" this might break.

To make it compatible, use either the .set(serviceName:) on individual Logger.builder or set the default service name for all loggers in Datadog.Configuration.builderUsing(...).set(serviceName: "...").

New default value for source attribute

We changed the value of source attribute from mobile to ios. If any of your dashboards or pipelines depends on this, please update them accordingly.

1.1.0

21 Apr 13:09
856549b
Compare
Choose a tag to compare

🐛 #80 : missing required module fix
⏲️ #65 : Syncing logs time with server

1.0.2

08 Apr 10:37
Compare
Choose a tag to compare

1.0.1

07 Apr 09:35
3bb3cd8
Compare
Choose a tag to compare

1.0.0

31 Mar 09:44
a983900
Compare
Choose a tag to compare

🚀 1.0.0 release of the logging feature.

Datadog.initialize(...)

let logger = Logger.builder.build()
logger.info("Hello from 1.0.0 👋")

1.0.0-beta3

30 Mar 13:52
7a7766e
Compare
Choose a tag to compare
1.0.0-beta3 Pre-release
Pre-release

1.0.0-beta2

20 Mar 13:07
68fac65
Compare
Choose a tag to compare