-
Notifications
You must be signed in to change notification settings - Fork 140
feat(logs): Add global log attributes #1707
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
Conversation
Adds the ability to specify global attributes for a log on a given Core by using `Logs.addAttribute` and `Logs.removeAttribute`. refs: RUM-3069
Adds logs added with Logs.addAttribute to the crash context, and sends them in the attributes when the crash is logged. Add integration test for global log attributes. refs: RUM-3069
8eb55c5
to
7abfdcc
Compare
Datadog ReportBranch report: ✅ 0 Failed, 2579 Passed, 0 Skipped, 23m 21.52s Wall Time 🔻 Code Coverage Decreases vs Default Branch (8)
|
775b9e5
to
68621cb
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.
Great work 🎯. Implementation looks clear and fine 👍.
I left few suggestions and one request to revert changes in pbxproj
.
DatadogCrashReporting/Sources/CrashContext/CrashContextProvider.swift
Outdated
Show resolved
Hide resolved
INFOPLIST_FILE = Runner/Info.plist; | ||
IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
LD_RUNPATH_SEARCH_PATHS = ( | ||
"$(inherited)", |
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.
blocking/ The IPHONEOS_DEPLOYMENT_TARGET
should be managed through local Base.local.xcconfig
which is git-ignored. Let's remove all changes to this file 🙏, otherwise this is dropping iOS 11 in CI.
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
selectedDebuggerIdentifier = "" | ||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn" |
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.
question/ Not sure on these changes - they do not look necessary.
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.
Hrm, yeah, probably just some changes from when I was testing crashes. I'll revert them.
Co-authored-by: Maciek Grzybowski <[email protected]>
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.
Thank you! 🙏
What and why?
Adds the ability to specify global attributes for a log on a given Core by using
Logs.addAttribute
andLogs.removeAttribute
.refs: RUM-3069
Review checklist
Custom CI job configuration (optional)
tools/