Skip to content

RUMM-233 Inject a random TraceId on top level spans#141

Merged
xgouchet merged 1 commit into
dd-tracingfrom
xgouchet/RUMM-233_traceId
Feb 20, 2020
Merged

RUMM-233 Inject a random TraceId on top level spans#141
xgouchet merged 1 commit into
dd-tracingfrom
xgouchet/RUMM-233_traceId

Conversation

@xgouchet
Copy link
Copy Markdown
Contributor

What does this PR do?

Inject a random TraceId on top level spans

Motivation

Android uses a zygote process, meaning that new instance of the same app will always have the same trace id, unless the device gets rebooted.

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@xgouchet xgouchet requested a review from a team as a code owner February 19, 2020 13:58
@xgouchet xgouchet self-assigned this Feb 19, 2020
@github-actions github-actions Bot added the api-surface-change This PR introduce a change in the API surface label Feb 19, 2020
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be added from the Builder ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed 😕 So why are the test green ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why are the test green ?

Because there's another

+        private var random: Random = SecureRandom()

in the Builder 🤔.

@mariusc83 mariusc83 force-pushed the dd-tracing branch 4 times, most recently from 79ced50 to ea29ff4 Compare February 19, 2020 17:57
Comment thread dd-sdk-android/src/main/kotlin/com/datadog/android/tracing/Tracer.kt Outdated
@xgouchet xgouchet force-pushed the xgouchet/RUMM-233_traceId branch 2 times, most recently from 1d84d4a to 3039a09 Compare February 20, 2020 11:58
@xgouchet xgouchet force-pushed the xgouchet/RUMM-233_traceId branch from 3039a09 to 16b779a Compare February 20, 2020 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-surface-change This PR introduce a change in the API surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants