Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: a-s-dev/glean
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c243d5ea24a7de67ebb811b106fbb6bcaf2cf87b
Choose a base ref
..
head repository: a-s-dev/glean
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 83209fd8191670026da62ed5a14c2e62a112572d
Choose a head ref
Showing with 4,445 additions and 187 deletions.
  1. +1 −1 .buildconfig.yml
  2. +3 −3 .circleci/config.yml
  3. +1 −0 .dictionary
  4. +21 −3 CHANGELOG.md
  5. +639 −8 Cargo.lock
  6. +1 −0 Cargo.toml
  7. +2 −2 DEPENDENCIES.md
  8. +8 −2 Makefile
  9. +23 −7 bin/prepare-release.sh
  10. +1 −1 docs/appendix/twig.md
  11. +1 −0 docs/book.toml
  12. +2 −0 docs/user/adding-glean-to-your-project.md
  13. +8 −3 docs/user/debugging/android.md
  14. +6 −3 docs/user/debugging/index.md
  15. +3 −3 docs/user/debugging/ios.md
  16. +1 −1 docs/user/metrics/event.md
  17. +1 −1 docs/user/metrics/string.md
  18. +1 −1 docs/user/metrics/string_list.md
  19. +2 −0 docs/user/pings/index.md
  20. +1 −1 glean-core/Cargo.toml
  21. +1 −1 glean-core/android/build.gradle
  22. +29 −0 glean-core/android/src/main/java/mozilla/telemetry/glean/Glean.kt
  23. +66 −9 glean-core/android/src/main/java/mozilla/telemetry/glean/debug/GleanDebugActivity.kt
  24. +194 −0 glean-core/android/src/main/java/mozilla/telemetry/glean/private/JweMetricType.kt
  25. +38 −0 glean-core/android/src/main/java/mozilla/telemetry/glean/rust/LibGleanFFI.kt
  26. +9 −26 glean-core/android/src/main/java/mozilla/telemetry/glean/scheduler/MetricsPingScheduler.kt
  27. +91 −21 glean-core/android/src/test/java/mozilla/telemetry/glean/debug/GleanDebugActivityTest.kt
  28. +1 −1 glean-core/android/src/test/java/mozilla/telemetry/glean/private/EventMetricTypeTest.kt
  29. +163 −0 glean-core/android/src/test/java/mozilla/telemetry/glean/private/JweMetricTypeTest.kt
  30. +1 −1 glean-core/android/src/test/java/mozilla/telemetry/glean/private/StringMetricTypeTest.kt
  31. +27 −1 glean-core/android/src/test/java/mozilla/telemetry/glean/scheduler/MetricsPingSchedulerTest.kt
  32. +44 −0 glean-core/csharp/Glean/LibGleanFFI.cs
  33. +202 −0 glean-core/csharp/Glean/Metrics/JweMetricType.cs
  34. +160 −0 glean-core/csharp/GleanTests/Metrics/JweMetricTypeTest.cs
  35. +1 −1 glean-core/csharp/GleanTests/Metrics/StringMetricTypeTest.cs
  36. +3 −3 glean-core/ffi/Cargo.toml
  37. +30 −0 glean-core/ffi/glean.h
  38. +83 −0 glean-core/ffi/src/jwe.rs
  39. +9 −0 glean-core/ffi/src/lib.rs
  40. +8 −0 glean-core/ios/Glean.xcodeproj/project.pbxproj
  41. +3 −3 glean-core/ios/Glean/Debug/GleanDebugTools.swift
  42. +3 −2 glean-core/ios/Glean/Glean.swift
  43. +30 −0 glean-core/ios/Glean/GleanFfi.h
  44. +179 −0 glean-core/ios/Glean/Metrics/JweMetric.swift
  45. +1 −1 glean-core/ios/GleanTests/Metrics/EventMetricTests.swift
  46. +133 −0 glean-core/ios/GleanTests/Metrics/JweMetricTests.swift
  47. +1 −1 glean-core/ios/GleanTests/Metrics/StringMetricTests.swift
  48. +12 −0 glean-core/nimbus-experiments/.gitignore
  49. +34 −0 glean-core/nimbus-experiments/Cargo.toml
  50. +373 −0 glean-core/nimbus-experiments/LICENSE
  51. +35 −0 glean-core/nimbus-experiments/README.md
  52. +7 −0 glean-core/nimbus-experiments/build.rs
  53. +24 −0 glean-core/nimbus-experiments/examples/experiment.rs
  54. +69 −0 glean-core/nimbus-experiments/src/buckets.rs
  55. +33 −0 glean-core/nimbus-experiments/src/error.rs
  56. +9 −0 glean-core/nimbus-experiments/src/experiments.idl
  57. +5 −3 glean-core/{src/fetch_msg_types.proto → nimbus-experiments/src/experiments_msg_types.proto}
  58. +69 −0 glean-core/nimbus-experiments/src/ffi.rs
  59. +85 −0 glean-core/nimbus-experiments/src/http_client.rs
  60. +148 −0 glean-core/nimbus-experiments/src/lib.rs
  61. +51 −0 glean-core/nimbus-experiments/src/matcher.rs
  62. +65 −0 glean-core/nimbus-experiments/src/persistence.rs
  63. +1 −1 glean-core/preview/Cargo.toml
  64. +9 −1 glean-core/python/glean/_ffi.py
  65. +3 −1 glean-core/python/glean/config.py
  66. +4 −2 glean-core/python/glean/glean.py
  67. +2 −0 glean-core/python/glean/metrics/__init__.py
  68. +219 −0 glean-core/python/glean/metrics/jwe.py
  69. +15 −0 glean-core/python/tests/conftest.py
  70. +1 −1 glean-core/python/tests/metrics/test_event.py
  71. +108 −0 glean-core/python/tests/metrics/test_jwe.py
  72. +15 −1 glean-core/python/tests/metrics/test_string.py
  73. +147 −45 glean-core/src/debug.rs
  74. +1 −4 glean-core/src/error.rs
  75. +14 −2 glean-core/src/error_recording.rs
  76. +1 −1 glean-core/src/histogram/functional.rs
  77. +21 −4 glean-core/src/lib.rs
  78. +2 −0 glean-core/src/lib_unit_tests.rs
  79. +2 −2 glean-core/src/metrics/experiment.rs
  80. +468 −0 glean-core/src/metrics/jwe.rs
  81. +6 −0 glean-core/src/metrics/mod.rs
  82. +24 −3 glean-core/src/ping/mod.rs
  83. +1 −1 glean-core/src/util.rs
  84. +113 −0 glean-core/tests/jwe.rs
  85. +1 −1 glean-core/tests/string.rs
  86. +2 −2 glean-core/tests/string_list.rs
  87. +1 −1 gradle-plugin/src/main/groovy/mozilla/telemetry/glean-gradle-plugin/GleanGradlePlugin.groovy
  88. +9 −0 samples/android/app/src/main/AndroidManifest.xml
2 changes: 1 addition & 1 deletion .buildconfig.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libraryVersion: 31.4.0-TESTING28
libraryVersion: 31.4.1-TESTING29
groupId: org.mozilla.telemetry
projects:
glean:
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -368,9 +368,9 @@ jobs:
- run:
name: Install mdbook-dtmo
command: |
MDBOOK_VERSION=0.6.1
MDBOOK_VERSION=0.7.1
MDBOOK="mdbook-dtmo-${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
MDBOOK_SHA256=775124f302e633db91696ff955509e8567305949c79a76ef51649b9871fdd590
MDBOOK_SHA256=fcc079b3d18024af1669bea1419e5395378bea036882c83214a740fab7c0bb43
curl -sfSL --retry 5 -O "https://github.com/badboy/mdbook-dtmo/releases/download/${MDBOOK_VERSION}/${MDBOOK}"
echo "${MDBOOK_SHA256} *${MDBOOK}" | shasum -a 256 -c -
tar -xvf "${MDBOOK}"
@@ -801,7 +801,7 @@ jobs:
- run:
name: Setup default Python version
command: |
echo "export PATH=/opt/python/cp38-cp38m/bin:$PATH" >> $BASH_ENV
echo "export PATH=/opt/python/cp38-cp38/bin:$PATH" >> $BASH_ENV
- run:
name: Build Python extension
command: |
1 change: 1 addition & 0 deletions .dictionary
Original file line number Diff line number Diff line change
@@ -115,6 +115,7 @@ integrations
io
ios
janerik
JWE
ktlint
lang
latencies
24 changes: 21 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
# Unreleased changes

[Full changelog](https://github.com/mozilla/glean/compare/v31.4.0...main)
[Full changelog](https://github.com/mozilla/glean/compare/v31.4.1...main)

# v31.4.0 (2020-07-16)
* General
* Implement ping tagging (i.e. the `X-Source-Tags` header) ([#1074](https://github.com/mozilla/glean/pull/1074)). Note that this is not yet implemented for iOS.
* String values that are too long now record `invalid_overflow` rather than `invalid_value` through the Glean error reporting mechanism. This affects the string, event and string list metrics.
* Python
* The Python unit tests no longer send telemetry to the production telemetry endpoint.
* Android
* Allow defining which `Activity` to run next when using the `GleanDebugActivity`.

# v31.4.1 (2020-07-20)

[Full changelog](https://github.com/mozilla/glean/compare/v31.4.0...v31.4.1)

* General
* Enable debugging features through environment variables. ([#1058](https://github.com/mozilla/glean/pull/1058))
* BUGFIX: fix `int32` to `ErrorType` mapping. The `InvalidOverflow` had a value mismatch between glean-core and the bindings. This would only be a problem in unit tests. ([#1063](https://github.com/mozilla/glean/pull/1063))
* Android
* Enable propagating options to the main product Activity when using the `GleanDebugActivity`.
* BUGFIX: Fix the metrics ping collection for startup pings such as `reason=upgrade` to occur in the same thread/task as Glean initialize. Otherwise, it gets collected after the application lifetime metrics are cleared such as experiments that should be in the ping. ([#1069](https://github.com/mozilla/glean/pull/1069))

# v31.4.0 (2020-07-16)

[Full changelog](https://github.com/mozilla/glean/compare/v31.3.0...v31.4.0)

* General
* Enable debugging features through environment variables. ([#1058](https://github.com/mozilla/glean/pull/1058))

# v31.3.0 (2020-07-10)

[Full changelog](https://github.com/mozilla/glean/compare/v31.2.3...v31.3.0)
Loading