Skip to content

Performance Timing will be reported with wrong view scope #1432

Description

@ken-kentan

Describe what happened

In following scenario, I expected to get the performance timing only for the screen home and item. But the SDK reported the timing with not only screens but also ApplicationLaunch

Setup:
Create a sample app that has 2 screens called home and item.
Add a performance timing to measure Compose rendering performance.
Add some network calls in Application::onCreate().

Scenario:

  1. Open the app
    • a timing for home screen will be reported
  2. Navigate to item screen
    • a timing for item screen and ApplicationLaunch will be reported <- !?

Steps to reproduce the issue:

Clone this PR and run the sample Kotlin app.
ken-kentan#1

Describe what you expected:

Performance Timing won't be sent with ApplicationLaunch scope.

Additional context

  • Android OS version: Any
  • Device Model: Any
  • Datadog SDK version: develop
  • Versions of any other relevant dependencies (OkHttp, …): OkHttp
  • Proguard configuration: Any
  • Gradle Plugins: Any

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions