-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow all activities to ge traced by default (#1789)
## Goal Add in annotations that allow a local config to specify that all activities loads are traced, with an opt-out annotation for those that shouldn't be. Note: a change to the swazzler is needed to properly wire this up, but the SDK changes are all contained and tested in this PR.
- Loading branch information
Showing
18 changed files
with
358 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...android-api/src/main/kotlin/io/embrace/android/embracesdk/annotation/NotTracedActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.embrace.android.embracesdk.annotation | ||
|
||
/** | ||
* The loading of Activities annotated with this class will not generate traces if the feature is enabled, irrespective of | ||
* the configured defaults. | ||
*/ | ||
@Target(AnnotationTarget.CLASS) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
public annotation class NotTracedActivity |
9 changes: 0 additions & 9 deletions
9
...-android-api/src/main/kotlin/io/embrace/android/embracesdk/annotation/ObservedActivity.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...ce-android-api/src/main/kotlin/io/embrace/android/embracesdk/annotation/TracedActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.embrace.android.embracesdk.annotation | ||
|
||
/** | ||
* The loading of Activities annotated with this class will generate traces if the feature is enabled, irrespective of | ||
* the configured defaults. | ||
*/ | ||
@Target(AnnotationTarget.CLASS) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
public annotation class TracedActivity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.