Skip to content

Make a local copy of tags before creating LogEvent#1171

Merged
fuzzybinary merged 1 commit into
feature/sdkv2from
nogorodnikov/make-local-copy-of-tags-before-log-event-creation
Dec 5, 2022
Merged

Make a local copy of tags before creating LogEvent#1171
fuzzybinary merged 1 commit into
feature/sdkv2from
nogorodnikov/make-local-copy-of-tags-before-log-event-creation

Conversation

@0xnm

@0xnm 0xnm commented Dec 5, 2022

Copy link
Copy Markdown
Member

What does this PR do?

We need to make a copy of tags, because by the time we create LogEvent (on the worker thread) it may have been changed by another thread.

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)

@0xnm
0xnm requested a review from a team as a code owner December 5, 2022 15:11
Comment thread dd-sdk-android/src/main/kotlin/com/datadog/android/log/Logger.kt
@0xnm
0xnm force-pushed the nogorodnikov/make-local-copy-of-tags-before-log-event-creation branch from 83da17f to a89af10 Compare December 5, 2022 15:33
@0xnm
0xnm force-pushed the nogorodnikov/make-local-copy-of-tags-before-log-event-creation branch from a89af10 to 2fc99ec Compare December 5, 2022 15:42
@0xnm
0xnm requested a review from fuzzybinary December 5, 2022 15:42
@fuzzybinary
fuzzybinary merged commit f810c1c into feature/sdkv2 Dec 5, 2022
@fuzzybinary
fuzzybinary deleted the nogorodnikov/make-local-copy-of-tags-before-log-event-creation branch December 5, 2022 17:04
@xgouchet xgouchet added this to the 1.17.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants