expo-observe 58.0.1 → 58.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/.npmignore +5 -0
  2. package/CHANGELOG.md +14 -0
  3. package/build/index.d.ts +1 -1
  4. package/build/index.js.map +1 -1
  5. package/build/module.js +33 -0
  6. package/build/module.js.map +1 -1
  7. package/build/types.d.ts +27 -1
  8. package/build/types.js.map +1 -1
  9. package/expo-module.config.json +1 -1
  10. package/{android/build/intermediates/source_jar/release/release-sources.jar → local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4-sources.jar} +0 -0
  11. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4-sources.jar.md5 +1 -0
  12. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4-sources.jar.sha1 +1 -0
  13. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4-sources.jar.sha256 +1 -0
  14. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4-sources.jar.sha512 +1 -0
  15. package/{android/build/outputs/aar/expo-observe-release.aar → local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.aar} +0 -0
  16. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.aar.md5 +1 -0
  17. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.aar.sha1 +1 -0
  18. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.aar.sha256 +1 -0
  19. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.aar.sha512 +1 -0
  20. package/{android/build/publications/release/module.json → local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.module} +22 -22
  21. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.module.md5 +1 -0
  22. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.module.sha1 +1 -0
  23. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.module.sha256 +1 -0
  24. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.module.sha512 +1 -0
  25. package/{android/build/publications/release/pom-default.xml → local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.pom} +2 -2
  26. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.pom.md5 +1 -0
  27. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.pom.sha1 +1 -0
  28. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.pom.sha256 +1 -0
  29. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.4/expo.modules.observe-58.0.4.pom.sha512 +1 -0
  30. package/local-maven-repo/expo/modules/observe/expo.modules.observe/maven-metadata.xml +4 -4
  31. package/local-maven-repo/expo/modules/observe/expo.modules.observe/maven-metadata.xml.md5 +1 -1
  32. package/local-maven-repo/expo/modules/observe/expo.modules.observe/maven-metadata.xml.sha1 +1 -1
  33. package/local-maven-repo/expo/modules/observe/expo.modules.observe/maven-metadata.xml.sha256 +1 -1
  34. package/local-maven-repo/expo/modules/observe/expo.modules.observe/maven-metadata.xml.sha512 +1 -1
  35. package/package.json +4 -4
  36. package/src/index.ts +1 -0
  37. package/src/module.ts +32 -0
  38. package/src/types.ts +33 -1
  39. package/android/build/generated/source/buildConfig/release/expo/modules/observe/BuildConfig.java +0 -12
  40. package/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml +0 -7
  41. package/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/output-metadata.json +0 -18
  42. package/android/build/intermediates/aar_main_jar/release/syncReleaseLibJars/classes.jar +0 -0
  43. package/android/build/intermediates/aar_metadata/release/writeReleaseAarMetadata/aar-metadata.properties +0 -7
  44. package/android/build/intermediates/annotation_processor_list/release/javaPreCompileRelease/annotationProcessors.json +0 -1
  45. package/android/build/intermediates/annotations_typedef_file/release/extractReleaseAnnotations/typedefs.txt +0 -0
  46. package/android/build/intermediates/compile_r_class_jar/release/generateReleaseRFile/R.jar +0 -0
  47. package/android/build/intermediates/compile_symbol_list/release/generateReleaseRFile/R.txt +0 -0
  48. package/android/build/intermediates/incremental/mergeReleaseAssets/merger.xml +0 -2
  49. package/android/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml +0 -2
  50. package/android/build/intermediates/incremental/release/packageReleaseResources/compile-file-map.properties +0 -1
  51. package/android/build/intermediates/incremental/release/packageReleaseResources/merger.xml +0 -2
  52. package/android/build/intermediates/incremental/release-mergeJavaRes/merge-state +0 -0
  53. package/android/build/intermediates/java_res/release/processReleaseJavaRes/out/META-INF/expo-observe_release.kotlin_module +0 -0
  54. package/android/build/intermediates/javac/release/compileReleaseJavaWithJavac/classes/expo/modules/observe/BuildConfig.class +0 -0
  55. package/android/build/intermediates/local_only_symbol_list/release/parseReleaseLocalResources/R-def.txt +0 -2
  56. package/android/build/intermediates/manifest_merge_blame_file/release/processReleaseManifest/manifest-merger-blame-release-report.txt +0 -9
  57. package/android/build/intermediates/merged_java_res/release/mergeReleaseJavaResource/feature-expo-observe.jar +0 -0
  58. package/android/build/intermediates/merged_manifest/release/processReleaseManifest/AndroidManifest.xml +0 -7
  59. package/android/build/intermediates/nested_resources_validation_report/release/generateReleaseResources/nestedResourcesValidationReport.txt +0 -1
  60. package/android/build/intermediates/symbol_list_with_package_name/release/generateReleaseRFile/package-aware-r.txt +0 -1
  61. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  62. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  63. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  64. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  65. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  66. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  67. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  68. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  69. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  70. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  71. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  72. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  73. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  74. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  75. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  76. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  77. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  78. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  79. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  80. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  81. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  82. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  83. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  84. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  85. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  86. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  87. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  88. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  89. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  90. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  91. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  92. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  93. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  94. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  95. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  96. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  97. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  98. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  99. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  100. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  101. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  102. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
  103. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  104. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  105. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  106. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  107. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values +0 -0
  108. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  109. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.s +0 -1
  110. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  111. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  112. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  113. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  114. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  115. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  116. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  117. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  118. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  119. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  120. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  121. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  122. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  123. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  124. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  125. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  126. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  127. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  128. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  129. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  130. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  131. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  132. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  133. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  134. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  135. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  136. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  137. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  138. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  139. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  140. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  141. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  142. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  143. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  144. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  145. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  146. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  147. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  148. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  149. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  150. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  151. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  152. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  153. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  154. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  155. package/android/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin +0 -0
  156. package/android/build/kotlin/compileReleaseKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  157. package/android/build/outputs/logs/manifest-merger-release-report.txt +0 -14
  158. package/android/build/tmp/compileReleaseJavaWithJavac/previous-compilation-data.bin +0 -0
  159. package/android/build/tmp/kotlin-classes/release/META-INF/expo-observe_release.kotlin_module +0 -0
  160. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$Companion.class +0 -0
  161. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$WhenMappings.class +0 -0
  162. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$cleanup$1.class +0 -0
  163. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$dispatchUnsentLogs$1.class +0 -0
  164. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$dispatchUnsentMetrics$1.class +0 -0
  165. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager$dispatchUnsentSpans$1.class +0 -0
  166. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BaseObservabilityManager.class +0 -0
  167. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BundleDefaults$__Pika.class +0 -0
  168. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/BundleDefaults.class +0 -0
  169. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Config$__Pika.class +0 -0
  170. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Config.class +0 -0
  171. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ConstantsKt.class +0 -0
  172. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/CursorRepairKt$repairCursorIfStale$1.class +0 -0
  173. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/CursorRepairKt$repairLogCursorIfStale$4.class +0 -0
  174. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/CursorRepairKt$repairMetricCursorIfStale$4.class +0 -0
  175. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/CursorRepairKt.class +0 -0
  176. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult$NonRetryableFailure.class +0 -0
  177. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult$PartialSuccess.class +0 -0
  178. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult$PayloadTooLarge.class +0 -0
  179. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult$RetryableFailure.class +0 -0
  180. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult$Success.class +0 -0
  181. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchResult.class +0 -0
  182. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchUtils$RetryGateState$Companion.class +0 -0
  183. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchUtils$RetryGateState.class +0 -0
  184. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/DispatchUtils.class +0 -0
  185. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/EASMetric$$serializer.class +0 -0
  186. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/EASMetric$Companion.class +0 -0
  187. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/EASMetric.class +0 -0
  188. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Event$$serializer.class +0 -0
  189. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Event$Companion.class +0 -0
  190. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Event.class +0 -0
  191. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/EventDispatcher.class +0 -0
  192. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ExpoManifest.class +0 -0
  193. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ExpoManifestKt.class +0 -0
  194. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/LogEvent$$serializer.class +0 -0
  195. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/LogEvent$Companion.class +0 -0
  196. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/LogEvent.class +0 -0
  197. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata$$serializer.class +0 -0
  198. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata$AppUpdatesInfo$$serializer.class +0 -0
  199. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata$AppUpdatesInfo$Companion.class +0 -0
  200. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata$AppUpdatesInfo.class +0 -0
  201. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata$Companion.class +0 -0
  202. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/Metadata.class +0 -0
  203. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Arr.class +0 -0
  204. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Bln.class +0 -0
  205. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Companion.class +0 -0
  206. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Dbl.class +0 -0
  207. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Int64.class +0 -0
  208. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$KvList.class +0 -0
  209. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue$Str.class +0 -0
  210. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValue.class +0 -0
  211. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAnyValueSerializer.class +0 -0
  212. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAttribute$$serializer.class +0 -0
  213. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAttribute$Companion.class +0 -0
  214. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTAttribute.class +0 -0
  215. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTDataPoint$$serializer.class +0 -0
  216. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTDataPoint$Companion.class +0 -0
  217. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTDataPoint.class +0 -0
  218. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTEvent$$serializer.class +0 -0
  219. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTEvent$Companion.class +0 -0
  220. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTEvent.class +0 -0
  221. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTGauge$$serializer.class +0 -0
  222. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTGauge$Companion.class +0 -0
  223. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTGauge.class +0 -0
  224. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTKeyValue$$serializer.class +0 -0
  225. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTKeyValue$Companion.class +0 -0
  226. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTKeyValue.class +0 -0
  227. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogRecord$$serializer.class +0 -0
  228. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogRecord$Companion.class +0 -0
  229. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogRecord.class +0 -0
  230. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogsRequestBody$$serializer.class +0 -0
  231. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogsRequestBody$Companion.class +0 -0
  232. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTLogsRequestBody.class +0 -0
  233. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetadata$$serializer.class +0 -0
  234. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetadata$Companion.class +0 -0
  235. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetadata.class +0 -0
  236. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetric$$serializer.class +0 -0
  237. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetric$Companion.class +0 -0
  238. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTMetric.class +0 -0
  239. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTPartialSuccess$$serializer.class +0 -0
  240. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTPartialSuccess$Companion.class +0 -0
  241. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTPartialSuccess.class +0 -0
  242. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTRequestBody$$serializer.class +0 -0
  243. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTRequestBody$Companion.class +0 -0
  244. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTRequestBody.class +0 -0
  245. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceLogs$$serializer.class +0 -0
  246. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceLogs$Companion.class +0 -0
  247. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceLogs.class +0 -0
  248. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceSpans$$serializer.class +0 -0
  249. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceSpans$Companion.class +0 -0
  250. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTResourceSpans.class +0 -0
  251. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScope$$serializer.class +0 -0
  252. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScope$Companion.class +0 -0
  253. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScope.class +0 -0
  254. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeLogs$$serializer.class +0 -0
  255. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeLogs$Companion.class +0 -0
  256. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeLogs.class +0 -0
  257. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeMetrics$$serializer.class +0 -0
  258. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeMetrics$Companion.class +0 -0
  259. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeMetrics.class +0 -0
  260. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeSpans$$serializer.class +0 -0
  261. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeSpans$Companion.class +0 -0
  262. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTScopeSpans.class +0 -0
  263. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTServiceResponse$$serializer.class +0 -0
  264. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTServiceResponse$Companion.class +0 -0
  265. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTServiceResponse.class +0 -0
  266. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpan$$serializer.class +0 -0
  267. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpan$Companion.class +0 -0
  268. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpan.class +0 -0
  269. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanEvent$$serializer.class +0 -0
  270. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanEvent$Companion.class +0 -0
  271. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanEvent.class +0 -0
  272. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanStatus$$serializer.class +0 -0
  273. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanStatus$Companion.class +0 -0
  274. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTSpanStatus.class +0 -0
  275. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTStringValue$$serializer.class +0 -0
  276. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTStringValue$Companion.class +0 -0
  277. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTStringValue.class +0 -0
  278. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTTracesRequestBody$$serializer.class +0 -0
  279. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTTracesRequestBody$Companion.class +0 -0
  280. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OTTracesRequestBody.class +0 -0
  281. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservabilityBackgroundWorker$Companion.class +0 -0
  282. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservabilityBackgroundWorker$doWork$1.class +0 -0
  283. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservabilityBackgroundWorker.class +0 -0
  284. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservabilityManager.class +0 -0
  285. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Constant$1.class +0 -0
  286. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Coroutine$1.class +0 -0
  287. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Function$1.class +0 -0
  288. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Function$2.class +0 -0
  289. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Function$3.class +0 -0
  290. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$Function$4.class +0 -0
  291. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$FunctionWithoutArgs$1.class +0 -0
  292. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$OnActivityEntersBackground$1.class +0 -0
  293. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule$definition$lambda$9$$inlined$OnCreate$1.class +0 -0
  294. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObserveModule.class +0 -0
  295. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservePreferences.class +0 -0
  296. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/ObservePreferencesKt.class +0 -0
  297. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/OpenTelemetryKt.class +0 -0
  298. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedBundleDefaults$$serializer.class +0 -0
  299. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedBundleDefaults$Companion.class +0 -0
  300. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedBundleDefaults.class +0 -0
  301. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedConfig$$serializer.class +0 -0
  302. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedConfig$Companion.class +0 -0
  303. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/PersistedConfig.class +0 -0
  304. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/SpanBatch.class +0 -0
  305. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/SpanDispatchDisposition.class +0 -0
  306. package/android/build/tmp/kotlin-classes/release/expo/modules/observe/SpanDispatchOutcomeKt.class +0 -0
  307. package/android/build/tmp/publishReleasePublicationToNPMPackageRepository/module-maven-metadata.xml +0 -13
  308. package/android/build/tmp/sourceReleaseJar/MANIFEST.MF +0 -2
  309. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1-sources.jar +0 -0
  310. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1-sources.jar.md5 +0 -1
  311. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1-sources.jar.sha1 +0 -1
  312. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1-sources.jar.sha256 +0 -1
  313. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1-sources.jar.sha512 +0 -1
  314. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.aar +0 -0
  315. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.aar.md5 +0 -1
  316. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.aar.sha1 +0 -1
  317. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.aar.sha256 +0 -1
  318. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.aar.sha512 +0 -1
  319. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.module +0 -154
  320. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.module.md5 +0 -1
  321. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.module.sha1 +0 -1
  322. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.module.sha256 +0 -1
  323. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.module.sha512 +0 -1
  324. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.pom +0 -106
  325. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.pom.md5 +0 -1
  326. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.pom.sha1 +0 -1
  327. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.pom.sha256 +0 -1
  328. package/local-maven-repo/expo/modules/observe/expo.modules.observe/58.0.1/expo.modules.observe-58.0.1.pom.sha512 +0 -1
package/.npmignore CHANGED
@@ -20,3 +20,8 @@ __rsc_tests__
20
20
  # Ensure native dirs aren't excluded by root .gitignore
21
21
  !/ios
22
22
  !/android
23
+
24
+ # Exclude native build output (pnpm pack ignores nested .gitignore files)
25
+ .cxx/
26
+ .gradle/
27
+ /android/build/
package/CHANGELOG.md CHANGED
@@ -10,6 +10,20 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 58.0.4 — 2026-09-15
14
+
15
+ ### 🎉 New features
16
+
17
+ - Add a `networkTraces` option to `configure` to record network requests as trace spans, with an optional capture filter. Recording is opt-in, so it never adds to your event usage unless you turn it on. ([#48891](https://github.com/expo/expo/pull/48891) by [@tsapeta](https://github.com/tsapeta))
18
+
19
+ ## 58.0.3 — 2026-09-14
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
23
+ ## 58.0.2 — 2026-09-14
24
+
25
+ _This version does not introduce any user-facing changes._
26
+
13
27
  ## 58.0.1 — 2026-09-14
14
28
 
15
29
  _This version does not introduce any user-facing changes._
package/build/index.d.ts CHANGED
@@ -12,5 +12,5 @@ export { ObserveRoot } from './ObserveRoot';
12
12
  export { Observe };
13
13
  /** @deprecated Import the named `Observe` export instead. */
14
14
  export default Observe;
15
- export type { ObserveAttribute, ObserveAttributes, ObserveConfig, ObserveIntegrationsConfig, ObserveModule, ObserveModuleEvents, ObserveNavigationIntegrationConfig, } from './types';
15
+ export type { ObserveAttribute, ObserveAttributes, ObserveConfig, ObserveIntegrationsConfig, ObserveModule, ObserveModuleEvents, ObserveNavigationIntegrationConfig, ObserveNetworkTracesConfig, } from './types';
16
16
  export { useObserve } from './useObserve';
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":[null],"names":["Observe","default","AppMetrics","ObserveErrorBoundary","ObserveInteractiveMarker","ObserveRoot","setBundleDefaults","environment","process","env","NODE_ENV","isJsDev","__DEV__","useObserve"],"mappings":"AAAA,OAAOA,aAAa,WAAW;AAE/B;;CAEC,GACD,SAASC,WAAWC,UAAU,QAAQ,mBAAmB;AAWzD,SAASC,oBAAoB,QAAQ,yBAAyB;AAK9D,SAASC,wBAAwB,QAAQ,6BAA6B;AAEtE,SAASC,WAAW,QAAQ,gBAAgB;AAE5CL,QAAQM,iBAAiB,CAAC;IACxBC,aAAaC,QAAQC,GAAG,CAACC,QAAQ,IAAI;IACrCC,SAAS,CAAC,CAACC;AACb;AAEA,SAASZ,OAAO,GAAG;AAEnB,2DAA2D,GAC3D,eAAeA,QAAQ;AAWvB,SAASa,UAAU,QAAQ,eAAe"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":[null],"names":["Observe","default","AppMetrics","ObserveErrorBoundary","ObserveInteractiveMarker","ObserveRoot","setBundleDefaults","environment","process","env","NODE_ENV","isJsDev","__DEV__","useObserve"],"mappings":"AAAA,OAAOA,aAAa,WAAW;AAE/B;;CAEC,GACD,SAASC,WAAWC,UAAU,QAAQ,mBAAmB;AAWzD,SAASC,oBAAoB,QAAQ,yBAAyB;AAK9D,SAASC,wBAAwB,QAAQ,6BAA6B;AAEtE,SAASC,WAAW,QAAQ,gBAAgB;AAE5CL,QAAQM,iBAAiB,CAAC;IACxBC,aAAaC,QAAQC,GAAG,CAACC,QAAQ,IAAI;IACrCC,SAAS,CAAC,CAACC;AACb;AAEA,SAASZ,OAAO,GAAG;AAEnB,2DAA2D,GAC3D,eAAeA,QAAQ;AAYvB,SAASa,UAAU,QAAQ,eAAe"}
package/build/module.js CHANGED
@@ -5,6 +5,35 @@ import { isRouterInstalled } from './integrations/expo-router/router';
5
5
  import { initReactNavigationIntegration } from './integrations/react-navigation/init';
6
6
  import { isReactNavigationInstalled } from './integrations/react-navigation/reactNavigation';
7
7
  import { reportCaughtError } from './reportCaughtError';
8
+ /**
9
+ * Normalizes the `networkTraces` sugar (`true` / `false` / `{ enabled, filter }`) into the config
10
+ * shape the native producer persists. `configure` is a full replacement, so an absent
11
+ * `networkTraces` resets to the default: disabled, no filter.
12
+ */ function networkTracesConfigFromOption(networkTraces) {
13
+ const option = networkTraces ?? false;
14
+ if (typeof option === 'boolean') {
15
+ return {
16
+ enabled: option
17
+ };
18
+ }
19
+ if (__DEV__) {
20
+ // Hosts are compared against the URL's host, so a full URL or a host:port pair matches
21
+ // nothing and silently records zero traces.
22
+ const malformed = option.filter?.hosts?.filter((host)=>/[/:]/.test(host));
23
+ if (malformed?.length) {
24
+ console.warn(`[expo-observe] \`networkTraces.filter.hosts\` expects bare hostnames, but got ${malformed.join(', ')}. ` + 'These match no request, so nothing will be recorded for them. Use "api.myapp.com" rather than "https://api.myapp.com/".');
25
+ }
26
+ }
27
+ // The object form records by default: passing a filter means "record these", so `enabled`
28
+ // only has to be spelled out to turn recording off while keeping the filter configured.
29
+ const enabled = option.enabled ?? true;
30
+ return option.filter != null ? {
31
+ enabled,
32
+ filter: option.filter
33
+ } : {
34
+ enabled
35
+ };
36
+ }
8
37
  const native = requireNativeModule('ExpoObserve');
9
38
  const Observe = new Proxy(native, {
10
39
  get (target, prop, receiver) {
@@ -13,6 +42,10 @@ const Observe = new Proxy(native, {
13
42
  // The handler is already installed at this point (it installs on import), so this only
14
43
  // toggles whether it records anything.
15
44
  setErrorHandlerEnabled(config.errorHandlingEnabled ?? true);
45
+ // Recording is gated in expo-app-metrics (the producer side), so the setting travels
46
+ // there rather than into the native `configure` payload. Applies to future captures
47
+ // only; spans persisted earlier in the launch still dispatch.
48
+ AppMetrics.setNetworkTracesConfig(networkTracesConfigFromOption(config.networkTraces));
16
49
  const routerEnabled = !!config.integrations?.['expo-router'];
17
50
  const reactNavigationEnabled = !!config.integrations?.['react-navigation'];
18
51
  if (routerEnabled && !isRouterInstalled) {
@@ -1 +1 @@
1
- {"version":3,"sources":["module.ts"],"sourcesContent":[null],"names":["requireNativeModule","AppMetrics","setErrorHandlerEnabled","initRouterIntegration","isRouterInstalled","initReactNavigationIntegration","isReactNavigationInstalled","reportCaughtError","native","Observe","Proxy","get","target","prop","receiver","config","errorHandlingEnabled","routerEnabled","integrations","reactNavigationEnabled","console","warn","shouldInitRouterIntegration","shouldInitReactNavigationIntegration","configure","error","name","callback","registerIntegrationImpl","Object","keys","includes","Reflect","getIntegrations","subscription","addListener","remove"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,OAAO;AAC3C,OAAOC,cAAcC,sBAAsB,QAAQ,mBAAmB;AAEtE,SAASC,qBAAqB,QAAQ,kCAAkC;AACxE,SAASC,iBAAiB,QAAQ,oCAAoC;AACtE,SAASC,8BAA8B,QAAQ,uCAAuC;AACtF,SAASC,0BAA0B,QAAQ,kDAAkD;AAC7F,SAASC,iBAAiB,QAAQ,sBAAsB;AAGxD,MAAMC,SAASR,oBAAmC;AAElD,MAAMS,UAAyB,IAAIC,MAAMF,QAAQ;IAC/CG,KAAIC,MAAM,EAAEC,IAAI,EAAEC,QAAQ;QACxB,IAAID,SAAS,aAAa;YACxB,OAAO,CAACE;gBACN,uFAAuF;gBACvF,uCAAuC;gBACvCb,uBAAuBa,OAAOC,oBAAoB,IAAI;gBAEtD,MAAMC,gBAAgB,CAAC,CAACF,OAAOG,YAAY,EAAE,CAAC,cAAc;gBAC5D,MAAMC,yBAAyB,CAAC,CAACJ,OAAOG,YAAY,EAAE,CAAC,mBAAmB;gBAE1E,IAAID,iBAAiB,CAACb,mBAAmB;oBACvCgB,QAAQC,IAAI,CACV;gBAEJ;gBACA,IAAIF,0BAA0B,CAACb,4BAA4B;oBACzDc,QAAQC,IAAI,CACV;gBAEJ;gBAEA,MAAMC,8BAA8BL,iBAAiBb;gBACrD,MAAMmB,uCACJJ,0BAA0Bb;gBAE5B,IAAIgB,+BAA+BC,sCAAsC;oBACvEH,QAAQC,IAAI,CACV,wFACE;gBAEN;gBAEA,IAAIC,6BAA6B;oBAC/BnB,sBAAsBY,OAAOG,YAAY,EAAE,CAAC,cAAc;gBAC5D,OAAO,IAAIK,sCAAsC;oBAC/ClB,+BAA+BU,OAAOG,YAAY,EAAE,CAAC,mBAAmB;gBAC1E;gBACA,OAAON,OAAOY,SAAS,CAACT;YAC1B;QACF;QAEA,IAAIF,SAAS,eAAe;YAC1B,OAAO,CAACY,QAAmBlB,kBAAkBkB;QAC/C;QAEA,IAAIZ,SAAS,uBAAuB;YAClC,OAAO,CACLa,MACAC,WACGC,wBAAwBhB,QAAQc,MAAMC;QAC7C;QAEA,wGAAwG;QACxG,iGAAiG;QACjG,iGAAiG;QACjG,wEAAwE;QACxE,IAAI,OAAOd,SAAS,YAAY,CAACgB,OAAOC,IAAI,CAAClB,QAAQmB,QAAQ,CAAClB,OAAO;YACnE,OAAOmB,QAAQrB,GAAG,CAACV,YAAYY;QACjC;QACA,OAAOmB,QAAQrB,GAAG,CAACC,QAAQC,MAAMC;IACnC;AACF;AAEA,OAAO,SAASc,wBACdhB,MAA8D,EAC9Dc,IAAO,EACPC,QAAwD;IAExD,MAAMT,eAAeN,OAAOqB,eAAe;IAC3C,IAAIf,cAAc;QAChB,IAAIA,YAAY,CAACQ,KAAK,EAAE;YACtBC,SAAST,YAAY,CAACQ,KAAK;QAC7B;QACA;IACF;IAEA,MAAMQ,eAAetB,OAAOuB,WAAW,CAAC,aAAa,CAAC,EAAEjB,YAAY,EAAE;QACpEgB,aAAaE,MAAM;QACnB,IAAIlB,cAAc,CAACQ,KAAK,EAAE;YACxBC,SAAST,YAAY,CAACQ,KAAK;QAC7B;IACF;AACF;AAEA,eAAejB,QAAQ"}
1
+ {"version":3,"sources":["module.ts"],"sourcesContent":[null],"names":["requireNativeModule","AppMetrics","setErrorHandlerEnabled","initRouterIntegration","isRouterInstalled","initReactNavigationIntegration","isReactNavigationInstalled","reportCaughtError","networkTracesConfigFromOption","networkTraces","option","enabled","__DEV__","malformed","filter","hosts","host","test","length","console","warn","join","native","Observe","Proxy","get","target","prop","receiver","config","errorHandlingEnabled","setNetworkTracesConfig","routerEnabled","integrations","reactNavigationEnabled","shouldInitRouterIntegration","shouldInitReactNavigationIntegration","configure","error","name","callback","registerIntegrationImpl","Object","keys","includes","Reflect","getIntegrations","subscription","addListener","remove"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,OAAO;AAC3C,OAAOC,cAAcC,sBAAsB,QAAQ,mBAAmB;AAEtE,SAASC,qBAAqB,QAAQ,kCAAkC;AACxE,SAASC,iBAAiB,QAAQ,oCAAoC;AACtE,SAASC,8BAA8B,QAAQ,uCAAuC;AACtF,SAASC,0BAA0B,QAAQ,kDAAkD;AAC7F,SAASC,iBAAiB,QAAQ,sBAAsB;AAGxD;;;;CAIC,GACD,SAASC,8BAA8BC,aAA6C;IAClF,MAAMC,SAASD,iBAAiB;IAChC,IAAI,OAAOC,WAAW,WAAW;QAC/B,OAAO;YAAEC,SAASD;QAAO;IAC3B;IACA,IAAIE,SAAS;QACX,uFAAuF;QACvF,4CAA4C;QAC5C,MAAMC,YAAYH,OAAOI,MAAM,EAAEC,OAAOD,OAAO,CAACE,OAAS,OAAOC,IAAI,CAACD;QACrE,IAAIH,WAAWK,QAAQ;YACrBC,QAAQC,IAAI,CACV,CAAC,8EAA8E,EAAEP,UAAUQ,IAAI,CAAC,MAAM,EAAE,CAAC,GACvG;QAEN;IACF;IACA,0FAA0F;IAC1F,wFAAwF;IACxF,MAAMV,UAAUD,OAAOC,OAAO,IAAI;IAClC,OAAOD,OAAOI,MAAM,IAAI,OAAO;QAAEH;QAASG,QAAQJ,OAAOI,MAAM;IAAC,IAAI;QAAEH;IAAQ;AAChF;AAEA,MAAMW,SAAStB,oBAAmC;AAElD,MAAMuB,UAAyB,IAAIC,MAAMF,QAAQ;IAC/CG,KAAIC,MAAM,EAAEC,IAAI,EAAEC,QAAQ;QACxB,IAAID,SAAS,aAAa;YACxB,OAAO,CAACE;gBACN,uFAAuF;gBACvF,uCAAuC;gBACvC3B,uBAAuB2B,OAAOC,oBAAoB,IAAI;gBAEtD,qFAAqF;gBACrF,oFAAoF;gBACpF,8DAA8D;gBAC9D7B,WAAW8B,sBAAsB,CAACvB,8BAA8BqB,OAAOpB,aAAa;gBAEpF,MAAMuB,gBAAgB,CAAC,CAACH,OAAOI,YAAY,EAAE,CAAC,cAAc;gBAC5D,MAAMC,yBAAyB,CAAC,CAACL,OAAOI,YAAY,EAAE,CAAC,mBAAmB;gBAE1E,IAAID,iBAAiB,CAAC5B,mBAAmB;oBACvCe,QAAQC,IAAI,CACV;gBAEJ;gBACA,IAAIc,0BAA0B,CAAC5B,4BAA4B;oBACzDa,QAAQC,IAAI,CACV;gBAEJ;gBAEA,MAAMe,8BAA8BH,iBAAiB5B;gBACrD,MAAMgC,uCACJF,0BAA0B5B;gBAE5B,IAAI6B,+BAA+BC,sCAAsC;oBACvEjB,QAAQC,IAAI,CACV,wFACE;gBAEN;gBAEA,IAAIe,6BAA6B;oBAC/BhC,sBAAsB0B,OAAOI,YAAY,EAAE,CAAC,cAAc;gBAC5D,OAAO,IAAIG,sCAAsC;oBAC/C/B,+BAA+BwB,OAAOI,YAAY,EAAE,CAAC,mBAAmB;gBAC1E;gBACA,OAAOP,OAAOW,SAAS,CAACR;YAC1B;QACF;QAEA,IAAIF,SAAS,eAAe;YAC1B,OAAO,CAACW,QAAmB/B,kBAAkB+B;QAC/C;QAEA,IAAIX,SAAS,uBAAuB;YAClC,OAAO,CACLY,MACAC,WACGC,wBAAwBf,QAAQa,MAAMC;QAC7C;QAEA,wGAAwG;QACxG,iGAAiG;QACjG,iGAAiG;QACjG,wEAAwE;QACxE,IAAI,OAAOb,SAAS,YAAY,CAACe,OAAOC,IAAI,CAACjB,QAAQkB,QAAQ,CAACjB,OAAO;YACnE,OAAOkB,QAAQpB,GAAG,CAACxB,YAAY0B;QACjC;QACA,OAAOkB,QAAQpB,GAAG,CAACC,QAAQC,MAAMC;IACnC;AACF;AAEA,OAAO,SAASa,wBACdf,MAA8D,EAC9Da,IAAO,EACPC,QAAwD;IAExD,MAAMP,eAAeP,OAAOoB,eAAe;IAC3C,IAAIb,cAAc;QAChB,IAAIA,YAAY,CAACM,KAAK,EAAE;YACtBC,SAASP,YAAY,CAACM,KAAK;QAC7B;QACA;IACF;IAEA,MAAMQ,eAAerB,OAAOsB,WAAW,CAAC,aAAa,CAAC,EAAEf,YAAY,EAAE;QACpEc,aAAaE,MAAM;QACnB,IAAIhB,cAAc,CAACM,KAAK,EAAE;YACxBC,SAASP,YAAY,CAACM,KAAK;QAC7B;IACF;AACF;AAEA,eAAehB,QAAQ"}
package/build/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { NativeModule } from 'expo';
2
- import type { LogAttributeValue, LogEventOptions, MetricAttributes } from 'expo-app-metrics';
2
+ import type { LogAttributeValue, LogEventOptions, MetricAttributes, NetworkRequestFilter } from 'expo-app-metrics';
3
3
  /**
4
4
  * Value types accepted as attribute values in `setGlobalAttributes` and the
5
5
  * other Observe APIs. Strings, numbers, and booleans are stored as typed
@@ -78,6 +78,32 @@ export type ObserveConfig = {
78
78
  * [integrate your own package](/eas/observe/integrations/third-party/).
79
79
  */
80
80
  integrations?: ObserveIntegrationsConfig;
81
+ /**
82
+ * Whether network requests are recorded as trace spans. Pass `true` to record every request,
83
+ * or an object to record only the ones matching a filter.
84
+ *
85
+ * Off by default, because each recorded span counts toward your event quota. This controls
86
+ * recording, not just export: a request that's turned off or filtered out never reaches the
87
+ * local database. It applies to future requests only, so anything recorded earlier in the
88
+ * launch still gets sent. The setting persists across launches.
89
+ *
90
+ * @default false
91
+ */
92
+ networkTraces?: boolean | ObserveNetworkTracesConfig;
93
+ };
94
+ export type ObserveNetworkTracesConfig = {
95
+ /**
96
+ * Whether network requests are recorded at all. Set it to `false` to keep a filter configured
97
+ * while recording nothing.
98
+ *
99
+ * @default true
100
+ */
101
+ enabled?: boolean;
102
+ /**
103
+ * Only requests matching the filter are recorded. An omitted field matches every request; an
104
+ * empty array matches none.
105
+ */
106
+ filter?: NetworkRequestFilter | null;
81
107
  };
82
108
  export type ObserveNavigationIntegrationConfig = {
83
109
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAqIA,WAyJC"}
1
+ {"version":3,"sources":["types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAqKA,WAyJC"}
@@ -9,7 +9,7 @@
9
9
  "publication": {
10
10
  "groupId": "expo.modules.observe",
11
11
  "artifactId": "expo.modules.observe",
12
- "version": "58.0.1",
12
+ "version": "58.0.4",
13
13
  "repository": "local-maven-repo"
14
14
  }
15
15
  }
@@ -0,0 +1 @@
1
+ 7cf6c16d146a11812c1c74b58cada5ed70e1224719c4b4e72aefa67bfc792e1c
@@ -0,0 +1 @@
1
+ 586058430ae58ffbdf3bd1171938847105471372d22dcada0842ae7c023df0f533dc2bee888b1edb2d5fe9212a4d6968c81151c5ca445f1c5c49297ab5debc6e
@@ -0,0 +1 @@
1
+ 00f75fc9681497c42a5bd1e4ed2d6b37e874cbef39af9ce4edecce57bfbc3dd6
@@ -0,0 +1 @@
1
+ 9fc3ea04f9d80fa21791aaa9b6f4e6739de87946d3e8fc897602c39ac2d7ab63926b366486e8f6929073927d894c6d7deeefd26579a7b0e32f1b7e3aca4157fd
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "expo.modules.observe",
5
5
  "module": "expo.modules.observe",
6
- "version": "58.0.1",
6
+ "version": "58.0.4",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.observe-58.0.1.aar",
28
- "url": "expo.modules.observe-58.0.1.aar",
29
- "size": 302570,
30
- "sha512": "15467819aab3372d223d1e9dd2ac3a5b8aa25569c7242b3ed7dcd8a26e781e800218aef1fc23fa05ab24c4674e237b1dc742b783d3dbd101c0d9a80a08758fc3",
31
- "sha256": "9058cd875f2f4cb784b35db066341efdc190e5af8a71d530ea9737ee6a100a2c",
32
- "sha1": "4b076880d698b83697bfb6bec0b1799af19b0647",
33
- "md5": "43e07478542f9ef51f805fd0ffbb8c73"
27
+ "name": "expo.modules.observe-58.0.4.aar",
28
+ "url": "expo.modules.observe-58.0.4.aar",
29
+ "size": 302567,
30
+ "sha512": "9fc3ea04f9d80fa21791aaa9b6f4e6739de87946d3e8fc897602c39ac2d7ab63926b366486e8f6929073927d894c6d7deeefd26579a7b0e32f1b7e3aca4157fd",
31
+ "sha256": "00f75fc9681497c42a5bd1e4ed2d6b37e874cbef39af9ce4edecce57bfbc3dd6",
32
+ "sha1": "356a90fbfba518bf66c7628c1892a7e1da3894ed",
33
+ "md5": "b497d611b14506fc18a86e6714c1f746"
34
34
  }
35
35
  ]
36
36
  },
@@ -61,7 +61,7 @@
61
61
  "group": "expo.modules.appmetrics",
62
62
  "module": "expo.modules.appmetrics",
63
63
  "version": {
64
- "requires": "58.0.1"
64
+ "requires": "58.0.2"
65
65
  }
66
66
  },
67
67
  {
@@ -120,13 +120,13 @@
120
120
  ],
121
121
  "files": [
122
122
  {
123
- "name": "expo.modules.observe-58.0.1.aar",
124
- "url": "expo.modules.observe-58.0.1.aar",
125
- "size": 302570,
126
- "sha512": "15467819aab3372d223d1e9dd2ac3a5b8aa25569c7242b3ed7dcd8a26e781e800218aef1fc23fa05ab24c4674e237b1dc742b783d3dbd101c0d9a80a08758fc3",
127
- "sha256": "9058cd875f2f4cb784b35db066341efdc190e5af8a71d530ea9737ee6a100a2c",
128
- "sha1": "4b076880d698b83697bfb6bec0b1799af19b0647",
129
- "md5": "43e07478542f9ef51f805fd0ffbb8c73"
123
+ "name": "expo.modules.observe-58.0.4.aar",
124
+ "url": "expo.modules.observe-58.0.4.aar",
125
+ "size": 302567,
126
+ "sha512": "9fc3ea04f9d80fa21791aaa9b6f4e6739de87946d3e8fc897602c39ac2d7ab63926b366486e8f6929073927d894c6d7deeefd26579a7b0e32f1b7e3aca4157fd",
127
+ "sha256": "00f75fc9681497c42a5bd1e4ed2d6b37e874cbef39af9ce4edecce57bfbc3dd6",
128
+ "sha1": "356a90fbfba518bf66c7628c1892a7e1da3894ed",
129
+ "md5": "b497d611b14506fc18a86e6714c1f746"
130
130
  }
131
131
  ]
132
132
  },
@@ -140,13 +140,13 @@
140
140
  },
141
141
  "files": [
142
142
  {
143
- "name": "expo.modules.observe-58.0.1-sources.jar",
144
- "url": "expo.modules.observe-58.0.1-sources.jar",
143
+ "name": "expo.modules.observe-58.0.4-sources.jar",
144
+ "url": "expo.modules.observe-58.0.4-sources.jar",
145
145
  "size": 27851,
146
- "sha512": "1e0abee24e75c533e5754901621b8151e87c0ba62b6185120531eb929e878352d65d452e75ec188915af7f088fc7ba9252cd4bc39d8464740368bcb9da7da1ae",
147
- "sha256": "902922d056bcaacd0e0c5f80bcf85b6d37469dbfacff88361c2b7ee6edbebd01",
148
- "sha1": "aaf47a17a3ed49228d287cc9e8dd5d7d4e64d68f",
149
- "md5": "150dbf334a3c9a64d24232ce9b1864eb"
146
+ "sha512": "586058430ae58ffbdf3bd1171938847105471372d22dcada0842ae7c023df0f533dc2bee888b1edb2d5fe9212a4d6968c81151c5ca445f1c5c49297ab5debc6e",
147
+ "sha256": "7cf6c16d146a11812c1c74b58cada5ed70e1224719c4b4e72aefa67bfc792e1c",
148
+ "sha1": "6fd5316f10e456c0a4944aa5cf07c10dc7a6eaf6",
149
+ "md5": "2573ff6df1611260e5e4891bc514037f"
150
150
  }
151
151
  ]
152
152
  }
@@ -0,0 +1 @@
1
+ f3858b3ef31922bb90f31c846caadfaa0ae9e1026c33ebcfb9877e53c9fd9c97
@@ -0,0 +1 @@
1
+ 59462a08f8e0021f2997c7f5c29dd2b1a5ba05586d6e43949e9d1e50e104592d65d24b49ff889069b67f99864df84c70219d1362018ed4f38aafa090c27229be
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>expo.modules.observe</groupId>
11
11
  <artifactId>expo.modules.observe</artifactId>
12
- <version>58.0.1</version>
12
+ <version>58.0.4</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.observe</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -52,7 +52,7 @@
52
52
  <dependency>
53
53
  <groupId>expo.modules.appmetrics</groupId>
54
54
  <artifactId>expo.modules.appmetrics</artifactId>
55
- <version>58.0.1</version>
55
+ <version>58.0.2</version>
56
56
  <scope>runtime</scope>
57
57
  </dependency>
58
58
  <dependency>
@@ -0,0 +1 @@
1
+ ab3c02e553b193e7e7b59c55633f7401dd83f38f4a76593430512fcaac21f58a
@@ -0,0 +1 @@
1
+ aa618e7e00e12d2ca7c7676044f7d72f4c3ead6ba18148a47e353b27157be78ee7dc50e267fa83fc69bc9d454040a29ea12f8d12a4a2dd29cd635ed53876a4ec
@@ -3,11 +3,11 @@
3
3
  <groupId>expo.modules.observe</groupId>
4
4
  <artifactId>expo.modules.observe</artifactId>
5
5
  <versioning>
6
- <latest>58.0.1</latest>
7
- <release>58.0.1</release>
6
+ <latest>58.0.4</latest>
7
+ <release>58.0.4</release>
8
8
  <versions>
9
- <version>58.0.1</version>
9
+ <version>58.0.4</version>
10
10
  </versions>
11
- <lastUpdated>20260914150057</lastUpdated>
11
+ <lastUpdated>20260915202029</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- e88e0d9a57248f616903ffc943d345c9
1
+ 7465da64b95dec4d5b9fda3cb113419d
@@ -1 +1 @@
1
- 169038e438ba5bd8122c6681e60046ebf33dac5a
1
+ e62d883c07f21133a91e064d6ed9f2d186f36a1c
@@ -1 +1 @@
1
- 488605957ae27cf505044316013437c7386f64f9df4225acd9571c731820ca96
1
+ 04095cd5c55fb31750a231b24c3f89a1a829b889c11a000e13ea1ed2c9227fb5
@@ -1 +1 @@
1
- 09ce21004ab4f4c2cc2f7656d363da395938e31ba96c928cbc466566a14f307a9a3c01558ddd93e2525191e2f44a793fc3abe675b7b0dea2bc125d95bcb6854c
1
+ cd65bdf5ce83fd5071006c2d2c2ab935c77646a7d7d94c0eff22c76c954fba18bffe6e53ba4d27bffeff59e4d0bc3dff7453ffd3d75940e7e68f63bac7da9d6a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-observe",
3
- "version": "58.0.1",
3
+ "version": "58.0.4",
4
4
  "description": "Expo module that dispatches collected app metrics to EAS Observe",
5
5
  "keywords": [
6
6
  "EAS",
@@ -42,14 +42,14 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "expo-app-metrics": "~58.0.1",
45
+ "expo-app-metrics": "~58.0.2",
46
46
  "expo-eas-client": "~58.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@react-navigation/native": "^7.1.33",
50
50
  "@testing-library/react-native": "^13.3.0",
51
51
  "@types/react": "~19.2.0",
52
- "expo": "58.0.0-preview.1",
52
+ "expo": "58.0.0-preview.2",
53
53
  "expo-module-scripts": "56.0.3"
54
54
  },
55
55
  "peerDependencies": {
@@ -68,7 +68,7 @@
68
68
  }
69
69
  },
70
70
  "title": "Expo Observe",
71
- "gitHead": "e4b50c311af4e076b49a532ba2dca72546783e46",
71
+ "gitHead": "313e67f5c9dfb16f9deca74a271cd1d4f33a6f82",
72
72
  "scripts": {
73
73
  "build": "expo-build src",
74
74
  "clean": "expo-module clean",
package/src/index.ts CHANGED
@@ -41,5 +41,6 @@ export type {
41
41
  ObserveModule,
42
42
  ObserveModuleEvents,
43
43
  ObserveNavigationIntegrationConfig,
44
+ ObserveNetworkTracesConfig,
44
45
  } from './types';
45
46
  export { useObserve } from './useObserve';
package/src/module.ts CHANGED
@@ -8,6 +8,33 @@ import { isReactNavigationInstalled } from './integrations/react-navigation/reac
8
8
  import { reportCaughtError } from './reportCaughtError';
9
9
  import type { ObserveConfig, ObserveIntegrationsConfig, ObserveModule } from './types';
10
10
 
11
+ /**
12
+ * Normalizes the `networkTraces` sugar (`true` / `false` / `{ enabled, filter }`) into the config
13
+ * shape the native producer persists. `configure` is a full replacement, so an absent
14
+ * `networkTraces` resets to the default: disabled, no filter.
15
+ */
16
+ function networkTracesConfigFromOption(networkTraces: ObserveConfig['networkTraces']) {
17
+ const option = networkTraces ?? false;
18
+ if (typeof option === 'boolean') {
19
+ return { enabled: option };
20
+ }
21
+ if (__DEV__) {
22
+ // Hosts are compared against the URL's host, so a full URL or a host:port pair matches
23
+ // nothing and silently records zero traces.
24
+ const malformed = option.filter?.hosts?.filter((host) => /[/:]/.test(host));
25
+ if (malformed?.length) {
26
+ console.warn(
27
+ `[expo-observe] \`networkTraces.filter.hosts\` expects bare hostnames, but got ${malformed.join(', ')}. ` +
28
+ 'These match no request, so nothing will be recorded for them. Use "api.myapp.com" rather than "https://api.myapp.com/".'
29
+ );
30
+ }
31
+ }
32
+ // The object form records by default: passing a filter means "record these", so `enabled`
33
+ // only has to be spelled out to turn recording off while keeping the filter configured.
34
+ const enabled = option.enabled ?? true;
35
+ return option.filter != null ? { enabled, filter: option.filter } : { enabled };
36
+ }
37
+
11
38
  const native = requireNativeModule<ObserveModule>('ExpoObserve');
12
39
 
13
40
  const Observe: ObserveModule = new Proxy(native, {
@@ -18,6 +45,11 @@ const Observe: ObserveModule = new Proxy(native, {
18
45
  // toggles whether it records anything.
19
46
  setErrorHandlerEnabled(config.errorHandlingEnabled ?? true);
20
47
 
48
+ // Recording is gated in expo-app-metrics (the producer side), so the setting travels
49
+ // there rather than into the native `configure` payload. Applies to future captures
50
+ // only; spans persisted earlier in the launch still dispatch.
51
+ AppMetrics.setNetworkTracesConfig(networkTracesConfigFromOption(config.networkTraces));
52
+
21
53
  const routerEnabled = !!config.integrations?.['expo-router'];
22
54
  const reactNavigationEnabled = !!config.integrations?.['react-navigation'];
23
55
 
package/src/types.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import type { NativeModule } from 'expo';
2
- import type { LogAttributeValue, LogEventOptions, MetricAttributes } from 'expo-app-metrics';
2
+ import type {
3
+ LogAttributeValue,
4
+ LogEventOptions,
5
+ MetricAttributes,
6
+ NetworkRequestFilter,
7
+ } from 'expo-app-metrics';
3
8
 
4
9
  /**
5
10
  * Value types accepted as attribute values in `setGlobalAttributes` and the
@@ -81,6 +86,33 @@ export type ObserveConfig = {
81
86
  * [integrate your own package](/eas/observe/integrations/third-party/).
82
87
  */
83
88
  integrations?: ObserveIntegrationsConfig;
89
+ /**
90
+ * Whether network requests are recorded as trace spans. Pass `true` to record every request,
91
+ * or an object to record only the ones matching a filter.
92
+ *
93
+ * Off by default, because each recorded span counts toward your event quota. This controls
94
+ * recording, not just export: a request that's turned off or filtered out never reaches the
95
+ * local database. It applies to future requests only, so anything recorded earlier in the
96
+ * launch still gets sent. The setting persists across launches.
97
+ *
98
+ * @default false
99
+ */
100
+ networkTraces?: boolean | ObserveNetworkTracesConfig;
101
+ };
102
+
103
+ export type ObserveNetworkTracesConfig = {
104
+ /**
105
+ * Whether network requests are recorded at all. Set it to `false` to keep a filter configured
106
+ * while recording nothing.
107
+ *
108
+ * @default true
109
+ */
110
+ enabled?: boolean;
111
+ /**
112
+ * Only requests matching the filter are recorded. An omitted field matches every request; an
113
+ * empty array matches none.
114
+ */
115
+ filter?: NetworkRequestFilter | null;
84
116
  };
85
117
 
86
118
  export type ObserveNavigationIntegrationConfig = {
@@ -1,12 +0,0 @@
1
- /**
2
- * Automatically generated file. DO NOT MODIFY
3
- */
4
- package expo.modules.observe;
5
-
6
- public final class BuildConfig {
7
- public static final boolean DEBUG = false;
8
- public static final String LIBRARY_PACKAGE_NAME = "expo.modules.observe";
9
- public static final String BUILD_TYPE = "release";
10
- // Field from default config.
11
- public static final String EXPO_OBSERVE_VERSION = "58.0.1";
12
- }
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="expo.modules.observe" >
4
-
5
- <uses-sdk android:minSdkVersion="24" />
6
-
7
- </manifest>
@@ -1,18 +0,0 @@
1
- {
2
- "version": 3,
3
- "artifactType": {
4
- "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
- "kind": "Directory"
6
- },
7
- "applicationId": "expo.modules.observe",
8
- "variantName": "release",
9
- "elements": [
10
- {
11
- "type": "SINGLE",
12
- "filters": [],
13
- "attributes": [],
14
- "outputFile": "AndroidManifest.xml"
15
- }
16
- ],
17
- "elementType": "File"
18
- }
@@ -1,7 +0,0 @@
1
- aarFormatVersion=1.0
2
- aarMetadataVersion=1.0
3
- minCompileSdk=37
4
- minCompileMinorSdk=0
5
- minCompileSdkExtension=0
6
- minAndroidGradlePluginVersion=1.0.0
7
- coreLibraryDesugaringEnabled=false
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/main/assets"/></dataSet><dataSet config="release" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/release/assets"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/main/jniLibs"/></dataSet><dataSet config="release" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/release/jniLibs"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:!&lt;dir>navigation"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="release$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/release/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="release" generated-set="release$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:!&lt;dir>navigation"><source path="/Users/alanhughes/Work/expo/packages/expo-observe/android/src/release/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"/><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:!&lt;dir>navigation"/><mergedItems/></merger>
@@ -1,2 +0,0 @@
1
- R_DEF: Internal format may change without notice
2
- local
@@ -1,9 +0,0 @@
1
- 1<?xml version="1.0" encoding="utf-8"?>
2
- 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- 3 package="expo.modules.observe" >
4
- 4
5
- 5 <uses-sdk android:minSdkVersion="24" />
6
- 5-->INJECTED
7
- 5-->INJECTED
8
- 6
9
- 7</manifest>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="expo.modules.observe" >
4
-
5
- <uses-sdk android:minSdkVersion="24" />
6
-
7
- </manifest>