-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-1520 Single Feature Integration Tests: Trace #1786
Conversation
fb67c1f
to
fb7b93a
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #1786 +/- ##
===========================================
- Coverage 83.47% 83.43% -0.04%
===========================================
Files 466 466
Lines 16364 16363 -1
Branches 2452 2452
===========================================
- Hits 13659 13652 -7
+ Misses 2039 2037 -2
- Partials 666 674 +8
|
fb7b93a
to
e5f4527
Compare
e5f4527
to
8733d29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work! I left some questions/suggestions.
@@ -65,7 +65,7 @@ internal class AndroidSpanLogsHandler( | |||
timestampMicroseconds: Long? = null | |||
) { | |||
val logsFeature = sdkCore.getFeature(Feature.LOGS_FEATURE_NAME) | |||
if (logsFeature != null) { | |||
if (logsFeature != null && fields.isNotEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change is needed?
First, with this change we can have a false positive warning in LogCat about missing Logs features, when it is actually registered.
Second, we can have then a possibility to not send anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially this is to avoid sending a useless log: if the fields
map is empty, then we will send a log with a default message (that just says "span log") with no custom attributes, providing no information whatsoever.
But indeed we might get a false positive logcat message, I'll fix that.
* } | ||
* } | ||
*/ | ||
@Suppress("UnsafeThirdPartyFunctionCall") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we exclude files under reliability
from this check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that makes more sense indeed.
.../single-fit/trace/src/test/kotlin/com/datadog/android/trace/integration/AndroidTracerTest.kt
Outdated
Show resolved
Hide resolved
reliability/single-fit/trace/src/test/kotlin/com/datadog/android/trace/integration/SpanExt.kt
Outdated
Show resolved
Hide resolved
...le-fit/trace/src/test/kotlin/com/datadog/android/trace/integration/TraceConfigurationTest.kt
Outdated
Show resolved
Hide resolved
...lity/single-fit/trace/src/test/kotlin/com/datadog/android/trace/integration/UtilitiesTest.kt
Outdated
Show resolved
Hide resolved
...lity/single-fit/trace/src/test/kotlin/com/datadog/android/trace/integration/UtilitiesTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job !!
fdb40a7
to
988c2f2
Compare
What does this PR do?
Implement the Single-FIT layer of our new Test Pyramid for the trace module.