Closed asetiyadi-MLB closed 10 months ago
Hi @asetiyadi-MLB ! Thank you for the report.
Are you trying to instrument distributed tracing or local traces? If you are looking for distributed tracing, you also need to enable the network instrumentation which seems to be missing in your configuration:
URLSessionInstrumentation.enable(
with: .init(
delegateClass: SessionDelegate.self
)
)
let session = URLSession(
configuration: .default,
delegate: SessionDelegate(),
delegateQueue: nil
)
If you are looking for local traces, could you share a snippet showing how you create and finish a span?
Thanks!
@maxep Thank you for the pointer. We are using distributed tracing and that's exactly the part that I missed when migrating from 1.2.x to 2.6.0. It is working now. 🙏🏼
Describe the bug
We have iOS application (target iOS 16 and up) and are upgrading DD from v1.2.x to v2.6.0 and noticing that Trace is no longer sending data to dashboard (APM - Traces dashboard). The Logs - Analytics and RUM session work fine.
The setup is as follows:
The Datadog.Configuration has the following setup:
We turned on the
Datadog.verbosityLevel = .debug
and noticing the following:Expected behavior
Trace data should be sent to dashboard and visible in APM - Traces
Datadog SDK version:
v2.6.0
Last working Datadog SDK version:
v.1.2.x
Dependency Manager:
.package(url: "https://github.com/DataDog/dd-sdk-ios.git", .upToNextMajor(from: "2.6.0")),
Other toolset:
No
Xcode version:
Xcode 15.1.0
Swift version:
(swift-tools-version: 5.9)
Deployment Target:
iOS 16 and up.