Skip to content
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

Migrate thermal states to OTel #821

Merged
merged 11 commits into from
May 13, 2024
Merged

Migrate thermal states to OTel #821

merged 11 commits into from
May 13, 2024

Conversation

leandro-godon
Copy link
Contributor

Goal

Send thermal state changes as spans.

Removal of the old service will be done in a separate PR.

Testing

The feature is not yet ready on the backend. It was tested against the mock api.

@leandro-godon leandro-godon requested a review from a team as a code owner May 8, 2024 18:09
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 81.11%. Comparing base (3ddac16) to head (ad20aaa).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #821      +/-   ##
==========================================
+ Coverage   81.06%   81.11%   +0.05%     
==========================================
  Files         427      428       +1     
  Lines       11453    11517      +64     
  Branches     1700     1710      +10     
==========================================
+ Hits         9284     9342      +58     
- Misses       1458     1459       +1     
- Partials      711      716       +5     
Files Coverage Δ
.../embrace/android/embracesdk/arch/schema/EmbType.kt 86.36% <100.00%> (+0.31%) ⬆️
...brace/android/embracesdk/arch/schema/SchemaType.kt 75.39% <100.00%> (+0.79%) ⬆️
...e/android/embracesdk/injection/DataSourceModule.kt 100.00% <100.00%> (ø)
...sdk/capture/thermalstate/ThermalStateDataSource.kt 80.95% <80.95%> (ø)

... and 4 files with indirect coverage changes

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM. We should hold off merging until the backend is ready & has been tested E2E.

# Conflicts:
#	embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/arch/schema/SchemaType.kt
#	embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/injection/DataSourceModule.kt
#	embrace-android-sdk/src/test/java/io/embrace/android/embracesdk/injection/DataSourceModuleImplTest.kt
@leandro-godon
Copy link
Contributor Author

I have checked with the backend that neither the older payload nor the new one is being loaded. Backend has now added an explicit rule to drop "perf.thermal_state" spans and snapshots until they are properly loaded.

@leandro-godon leandro-godon merged commit d2b2093 into master May 13, 2024
4 checks passed
@leandro-godon leandro-godon deleted the leandro/thermal_states branch May 13, 2024 18:41
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.

None yet

2 participants