embrace-io / embrace-apple-sdk

Embrace's Swift SDK built on OpenTelemetry
https://embrace.io/docs/ios/
Apache License 2.0
117 stars 11 forks source link

Added `StackTraceBehavior` to `log` API #52

Closed ArielDemarco closed 2 months ago

ArielDemarco commented 2 months ago

Overview

Added a new parameter to the log public api: stackTraceBehavior. This parameter is of type StackTraceBehavior which has two options:

By default, the public API adds the .default as the default StackTraceBehavior.

github-actions[bot] commented 2 months ago

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

github-actions[bot] commented 2 months ago
Warnings
:warning: No CHANGELOG entry added.

Generated by :no_entry_sign: Danger Swift against 09211231ff89d91e2f74e6e4c0a40c3894af0066

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.59%. Comparing base (5097a6f) to head (0921123). Report is 5 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52/graphs/tree.svg?width=650&height=150&src=pr&token=R3KMG2Ar52&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io)](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io) ```diff @@ Coverage Diff @@ ## main #52 +/- ## ========================================== - Coverage 92.06% 91.59% -0.47% ========================================== Files 392 404 +12 Lines 18867 19810 +943 ========================================== + Hits 17369 18145 +776 - Misses 1498 1665 +167 ``` | [Files with missing lines](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io) | Coverage Δ | | |---|---|---| | [...kPayloadCapture/NetworkPayloadCaptureHandler.swift](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&filepath=Sources%2FEmbraceCore%2FCapture%2FNetwork%2FNetworkPayloadCapture%2FNetworkPayloadCaptureHandler.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io#diff-U291cmNlcy9FbWJyYWNlQ29yZS9DYXB0dXJlL05ldHdvcmsvTmV0d29ya1BheWxvYWRDYXB0dXJlL05ldHdvcmtQYXlsb2FkQ2FwdHVyZUhhbmRsZXIuc3dpZnQ=) | `90.58% <100.00%> (ø)` | | | [...raceCore/Internal/Logs/DefaultInternalLogger.swift](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&filepath=Sources%2FEmbraceCore%2FInternal%2FLogs%2FDefaultInternalLogger.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io#diff-U291cmNlcy9FbWJyYWNlQ29yZS9JbnRlcm5hbC9Mb2dzL0RlZmF1bHRJbnRlcm5hbExvZ2dlci5zd2lmdA==) | `82.69% <100.00%> (-7.60%)` | :arrow_down: | | [Sources/EmbraceCore/Public/Embrace+OTel.swift](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&filepath=Sources%2FEmbraceCore%2FPublic%2FEmbrace%2BOTel.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io#diff-U291cmNlcy9FbWJyYWNlQ29yZS9QdWJsaWMvRW1icmFjZStPVGVsLnN3aWZ0) | `70.88% <100.00%> (-8.57%)` | :arrow_down: | | [...eCore/Session/DataRecovery/UnsentDataHandler.swift](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&filepath=Sources%2FEmbraceCore%2FSession%2FDataRecovery%2FUnsentDataHandler.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io#diff-U291cmNlcy9FbWJyYWNlQ29yZS9TZXNzaW9uL0RhdGFSZWNvdmVyeS9VbnNlbnREYXRhSGFuZGxlci5zd2lmdA==) | `92.09% <100.00%> (+0.04%)` | :arrow_up: | | [...s/TestSupport/Mocks/MockEmbraceOpenTelemetry.swift](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52?src=pr&el=tree&filepath=Tests%2FTestSupport%2FMocks%2FMockEmbraceOpenTelemetry.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io#diff-VGVzdHMvVGVzdFN1cHBvcnQvTW9ja3MvTW9ja0VtYnJhY2VPcGVuVGVsZW1ldHJ5LnN3aWZ0) | `97.56% <100.00%> (+0.68%)` | :arrow_up: | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/52/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io)