github DataDog/dd-sdk-ios 1.2.0

latest releases: 2.11.0, 2.10.1, 2.10.0...
3 years ago

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.

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

NewReleases is sending notifications on new releases.