Describe the bug
When you call OTelSpan.addEvent() (by way of Span.addEvent()) the event is silently dropped.
https://github.com/DataDog/dd-sdk-android/blob/develop/features/dd-sdk-android-trace-otel/src/main/java/com/datadog/opentelemetry/trace/OtelSpan.java#L83-L93
This is odd because the iOS SDK supports span events (which are just logs, correlated to the span).
I considered making this a feature request but given the fact that it fails silently without throwing an exception, and iOS has this functionality, it feels like a bug.
Reproduction steps
Create a span, then call addEvent() on it. The event (log) does not get sent to Datadog.
Logcat logs
No response
Expected behavior
The log should appear in Datadog, with a link back to the span. Looking at the span, you should be able to see the events that were sent while the span was in progress.
Affected SDK versions
3.5.0, 3.8.0
Latest working SDK version
never
Did you confirm if the latest SDK version fixes the bug?
Yes
Kotlin / Java version
No response
Gradle / AGP version
No response
Other dependencies versions
No response
Device Information
No response
Other relevant information
No response
Describe the bug
When you call
OTelSpan.addEvent()(by way ofSpan.addEvent()) the event is silently dropped.https://github.com/DataDog/dd-sdk-android/blob/develop/features/dd-sdk-android-trace-otel/src/main/java/com/datadog/opentelemetry/trace/OtelSpan.java#L83-L93
This is odd because the iOS SDK supports span events (which are just logs, correlated to the span).
I considered making this a feature request but given the fact that it fails silently without throwing an exception, and iOS has this functionality, it feels like a bug.
Reproduction steps
Create a span, then call
addEvent()on it. The event (log) does not get sent to Datadog.Logcat logs
No response
Expected behavior
The log should appear in Datadog, with a link back to the span. Looking at the span, you should be able to see the events that were sent while the span was in progress.
Affected SDK versions
3.5.0, 3.8.0
Latest working SDK version
never
Did you confirm if the latest SDK version fixes the bug?
Yes
Kotlin / Java version
No response
Gradle / AGP version
No response
Other dependencies versions
No response
Device Information
No response
Other relevant information
No response