Граф коммитов

2376 Коммитов

Автор SHA1 Сообщение Дата
Michael Droettboom a7fb051973
bug 1615675: Document known telemetry antipatterns (#796)
* [doc only] bug 1615675: Document known telemetry antipatterns

A lot of the issues mentioned in the bug were addressed by previous
documentation work, but this addresses all of the remaining things there.

* Address PR comments
2020-03-31 16:57:41 -04:00
Travis Long 499ab23a29 Bug 1623506 - Clarify documentation that pings will not be logged until submitted 2020-03-31 15:55:14 -05:00
Jan-Erik Rediger 36bfeae762 Bug 1625207 - device manufacturer & model are now optional 2020-03-31 16:25:24 +02:00
Alessio Placitelli 4311592bf4
Merge pull request #792 from mozilla/fix-libc-math
Only link against libm for the Windows GNU target
2020-03-31 14:01:24 +02:00
Jan-Erik Rediger 260c8ee9ad Only apply the floating point fix on Windows GNU targets
Otherwise this will fail with a error on MSVC:

  fatal error LNK1181: cannot open input file 'm.lib'

We also don't need libc. `size_t` is properly defined, so we can
replicate that.

Additionally, applying the `controlfp` changes on MSVC seem to break the
tests anyway.
2020-03-31 11:40:27 +02:00
Jan-Erik Rediger ab5c59e38e
Merge pull request #789 from mdboom/fix-macos-wheel-deploy
Fix deploying wheels on MacOS
2020-03-31 10:10:29 +02:00
Michael Droettboom 0a11c7bdf0 Fix deploying wheels on MacOS 2020-03-27 18:06:54 -04:00
Michael Droettboom f4845e96db
Bumped version to 26.0.0 (#788) 2020-03-27 18:06:09 -04:00
Michael Droettboom 83aba44fd1
Developer convenience: Use different venv dir for each Python version (#787)
* Developer convenience: Use different venv dir for each Python version

* Fix CI

* Update docs/dev/python/setting-up-python-build-environment.md

Co-Authored-By: Jan-Erik Rediger <badboy@archlinux.us>

Co-authored-by: Jan-Erik Rediger <badboy@archlinux.us>
2020-03-27 10:40:58 -04:00
Michael Droettboom b11564f0e7
1604191: Python: run Glean work on a worker thread (#783)
* 1604191: Python: run Glean work on a worker thread

* Implement tests

* Add another test

* Apply suggestions from code review

Co-Authored-By: William Lachance <wrlach@gmail.com>

* Convert docstring to comment

* Add docs about parallelism

* lint

* Remove unnecessary layer of indirection

Co-authored-by: William Lachance <wrlach@gmail.com>
2020-03-27 09:18:25 -04:00
Alessio Placitelli f2e1a20474
Merge pull request #785 from Dexterp37/user_lifetime_docs
Warn against the use of `user` lifetime in the docs [doc only]
2020-03-27 14:07:24 +01:00
Alessio Placitelli 8d33f726c6
Use the proper name for the client id
Co-Authored-By: Michael Droettboom <mdboom@gmail.com>
2020-03-27 13:48:07 +01:00
Jan-Erik Rediger b0e7f63c04
Merge pull request #784 from mozilla/remove-finalizers
Remove all finalizers from metric type implementations in Kotlin
2020-03-27 11:58:53 +01:00
Alessio Placitelli c56198b388 Add 'md' to the dictionary 2020-03-27 11:53:14 +01:00
Alessio Placitelli f39085291f Fix building docs on Windows 2020-03-27 10:54:36 +01:00
Alessio Placitelli 12704a2638 Warn against the use of `user` lifetime in the docs 2020-03-27 10:54:36 +01:00
Jan-Erik Rediger 25bf9ea0b2 Remove all finalizers from metric type implementations in Kotlin
They cause us more trouble than they are worth.
This is safe.
The only thing we did do in finalizers is cleaning up the allocated
object on the native Rust side.
Without these we now potentially leak memory.
_But_ metric types were already only used for metrics, and those are
statics, so they live for the entire application runtime.
Once the application is done and exits the Glean library will also be
unloaded and thus all its data be deallocated.

The only place where we create metrics at runtime is in tests.
So we're now leaking those in tests, but that should be fine.

As a side note: Java 9 deprecates finalizers in the language, Android
itself doesn't support Java 9 (yet) and has its own implementation of it
anyway, but that's nonetheless a good hint that finalizers might not be
the best idea afterall.
2020-03-26 14:46:23 +01:00
Michael Droettboom 184a037348
Python Windows testing (#779)
* Python: Testing on Windows

* Fix floating point on x86_64 Windows

* Update comment
2020-03-26 09:45:08 -04:00
Alessio Placitelli c475dbbec8
Merge pull request #780 from Dexterp37/doc_metric_type_swap
Document potential data loss when changing metric types
2020-03-26 14:27:35 +01:00
Alessio Placitelli abbff525fe Document that changing data types may cause data loss 2020-03-26 14:15:04 +01:00
Alessio Placitelli bd7fcc6a2e Add test coverage for the dataloss case 2020-03-26 14:14:29 +01:00
Travis Long 2f342e7afc Update TWiG posts 2020-03-25 10:57:57 -05:00
Travis Long 6d217240d8 Fix lint 2020-03-25 10:18:12 -05:00
Travis Long 0e57a2bbd7 iOS: Add convenience `measure` function to `TimingDistributionMetricType` 2020-03-25 10:18:12 -05:00
Travis Long c594c499d4 iOS: Add convenience `measure` function to `TimespanMetricType` 2020-03-25 10:18:12 -05:00
Travis Long b72aa74e7f Android: Add convenience `measure` function to `TimingDistributionMetricType` 2020-03-25 10:18:12 -05:00
Travis Long 13ba64abcf Bug 1598993 - Android: Add convenience `measure` function to `TimespanMetricType` 2020-03-25 10:18:12 -05:00
Jan-Erik Rediger fbb80e963c
Merge pull request #781 from mozilla/missing-arg-doc
Add missing documentation for parameters
2020-03-25 15:28:26 +01:00
Jan-Erik Rediger 979fdb23ed Add missing documentation for parameters
[doc only]
2020-03-25 12:46:50 +01:00
Michael Droettboom 55bba00886
Python: Windows x86 support (#776)
* Python: Fixes and release for 32-bit Windows

This addresses the following bugs to make 32-bit Windows builds pass the
unit tests.

1622909: Release 32-bit wheels for Windows
1623335: Functional bucketing fixes
1623587: Unable to detect locale on Windows

Also relevant (but a follow-on) is:

1623307: Add Windows tests to CI

* More contexts

* Fix CircleCI config

* Fix non-Windows-x86 platforms

* Document about unknown locales

* Add documentation about FPU control

* Add comment about default locale

* Use FloatingPointContext correctly, and everywhere floating point is used

* Also update locale docs in metrics.yaml

* "C" -> "und"

* Spellcheck

* Document floating point context purpose
2020-03-24 10:17:22 -04:00
William Lachance fa584f1b1e
Add testing for python 3.8 (#775)
* Add testing for python 3.8

* Update config.yml
2020-03-20 13:50:16 -04:00
Michael Droettboom 1d9528e00a
Upgrade glean_parser to 1.19.0 (#772)
* Upgrade glean_parser to 1.19.0

* Spellcheck
2020-03-20 10:27:11 -04:00
William Lachance cd67c04476
Bug 1623757 - Fix getting system information on python 3.8 (#773) 2020-03-20 10:26:55 -04:00
Alessio Placitelli e8c746b2ad
Merge pull request #774 from mozilla/Dexterp37-patch-1
Update Windows build FAQs
2020-03-20 14:02:35 +01:00
Alessio Placitelli e6528e2f38
Update Windows build FAQs 2020-03-20 11:34:04 +01:00
Jan-Erik Rediger 4ee44a2333
Merge pull request #771 from mozilla/ios/testGetNumRecordedErrors-for-labeled
iOS: Add missing `testGetNumRecordedErrors` methods for labeled metrics
2020-03-17 17:50:15 +01:00
Jan-Erik Rediger 27734f6291 iOS: Add missing `testGetNumRecordedErrors` methods for labeled metrics 2020-03-17 16:10:41 +01:00
Jan-Erik Rediger 131700f1bf
Merge pull request #770 from mdboom/ping-lifetime-clear
Fix metric lifetime timeline diagram
2020-03-17 10:33:17 +01:00
Jan-Erik Rediger 400b1823ed
Merge pull request #769 from mozilla/doc-naming
Add a table of all different implementations and projects of the Glean SDK
2020-03-17 10:14:54 +01:00
Jan-Erik Rediger 8b45281bed
Update docs/dev/core/internal/implementations.md
[doc only]

Co-Authored-By: Alessio Placitelli <alessio.placitelli@gmail.com>
2020-03-16 13:59:05 +01:00
Michael Droettboom 44751c1346 Fix metric lifetime timeline diagram 2020-03-16 08:49:24 -04:00
Jan-Erik Rediger 28c05f7aef Add a table of all different implementations and projects of the Glean SDK
[doc only]
2020-03-16 12:22:27 +01:00
Jan-Erik Rediger 26d7dd3278
Merge pull request #766 from mdboom/python-labeled-misc
Python: Add remaining labeled metric types
2020-03-12 09:36:55 +01:00
Jan-Erik Rediger a5a182a4aa
Merge pull request #768 from mdboom/python-is-ready
[doc only] Prepare Python for its big debut
2020-03-12 09:34:00 +01:00
Michael Droettboom 8c4928093f [doc only] Prepare Python for its big debut 2020-03-11 14:46:33 -04:00
Michael Droettboom 6ad5cb1be6 Address comments from PR 2020-03-11 13:06:09 -04:00
Michael Droettboom 1fa967e4e1 Add docs for labeled booleans 2020-03-11 13:01:25 -04:00
Michael Droettboom 059bd11b0a Python: Labeled boolean and labeled string metric type 2020-03-11 13:01:25 -04:00
Jan-Erik Rediger a30e58cebe
Merge pull request #765 from mdboom/python-string-list
Python: Add string list metric
2020-03-11 10:34:54 +01:00
Jan-Erik Rediger 1018946f78
Merge pull request #764 from mdboom/python-xlink
Add missing Python docs and make some things private
2020-03-11 10:34:45 +01:00