Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add google firestore instrumentation (#893)
* Add instrumentation for Google Firestore documents and collections (#876) * Initial GCP firestore instrumentation commit. * Add testing for documents and collections + test generators Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> * Add co-authors. Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> * Add co-authors. Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> * Trim whitespace --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> Co-authored-by: Timothy Pansino <[email protected]> * Firestore CI (#877) * Add firestore CI runner * Correct hook file name * Setup emulator credentials * Swap dependency to firestore alone * Hacky setup for firestore * Fix firestore hostname * Ensure firestore connection * Fix CI issues * Refactor Firestore Hooks (#879) * Remove unnecessary instrumentation * Simplify existing instrumentation * Remove unnecessary settings lookups * Firestore Sync Client Instrumentation (#880) * Remove unnecessary instrumentation * Simplify existing instrumentation * Remove unnecessary settings lookups * Client instrumentation * Add query and aggregation query instrumentation * Fix deprecation warning * Simplify collection lookup * Combine query test files * Rename methods for clarity * Instrument Firestore batching * Add transaction instrumentation * Consumer iterators on <=Py38 * Allow better parallelization in firestore tests * Clean out unnecessary code * [Mega-Linter] Apply linters fixes * Better parallelization safeguards * Add collection group instrumentation * [Mega-Linter] Apply linters fixes * Change imports to native APIs * Swap target functions to lambdas * Convert exercise functions to fixtures --------- Co-authored-by: TimPansino <[email protected]> * Update datastore_trace wrapper to take instance info (#883) * Update datastore trace wrapper to take instance info. * [Mega-Linter] Apply linters fixes * Make instance info args optional. * [Mega-Linter] Apply linters fixes * Add datastore trace testing. * Add background task decorator. * [Mega-Linter] Apply linters fixes * Fix typo in validator. --------- Co-authored-by: umaannamalai <[email protected]> * Async Generator Wrapper (#884) * Add async generator wrapper * Add no harm test * Remove anext calls * Add graphql traces to decorator testing * Remove pypy generator gc logic --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Trace Async Wrapper Argument (#886) * Add async_wrapper to datastore_trace api * Add async wrapper argument to all trace APIs * Add testing for automatic and manual asyncwrappers * Firstore Async Instrumentation (#882) * Remove unnecessary instrumentation * Simplify existing instrumentation * Remove unnecessary settings lookups * Client instrumentation * Add query and aggregation query instrumentation * Fix deprecation warning * Simplify collection lookup * Combine query test files * Rename methods for clarity * Instrument Firestore batching * Add transaction instrumentation * Consumer iterators on <=Py38 * Add async generator wrapper * Allow better parallelization in firestore tests * Fix issue in async generator wrapper * Add async client instrumentation * Squashed commit of the following: commit 9d411e0 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:57:39 2023 -0700 Clean out unnecessary code commit cb550ba Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:27:01 2023 -0700 Allow better parallelization in firestore tests * Add async collection instrumentation * Add async document instrumentation * Async Query instrumentation * Add async batch instrumentation * Add instrumentation for AsyncTransaction * Squashed commit of the following: commit c836f8f Author: TimPansino <[email protected]> Date: Thu Jul 27 19:54:35 2023 +0000 [Mega-Linter] Apply linters fixes commit 02a55a1 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 12:46:46 2023 -0700 Add collection group instrumentation commit ab1f4ff Author: Tim Pansino <[email protected]> Date: Thu Jul 27 12:00:33 2023 -0700 Better parallelization safeguards commit fa5f39a Author: TimPansino <[email protected]> Date: Wed Jul 26 22:59:11 2023 +0000 [Mega-Linter] Apply linters fixes commit 9d411e0 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:57:39 2023 -0700 Clean out unnecessary code commit cb550ba Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:27:01 2023 -0700 Allow better parallelization in firestore tests * Remove reset_firestore * Re-merge of test_query * Use public API imports * Add async collection group instrumentation * Refactor exercise functions to fixtures * Squashed commit of the following: commit 09c5e11 Author: Tim Pansino <[email protected]> Date: Wed Aug 2 14:33:24 2023 -0700 Add testing for automatic and manual asyncwrappers commit fc3ef6b Author: Tim Pansino <[email protected]> Date: Wed Aug 2 14:33:05 2023 -0700 Add async wrapper argument to all trace APIs commit 479f9e2 Merge: faf3ccc edd1f94 Author: Tim Pansino <[email protected]> Date: Wed Aug 2 13:44:24 2023 -0700 Merge remote-tracking branch 'origin/develop-google-firestore-instrumentation' into feature-async-wrapper-argument commit edd1f94 Author: Timothy Pansino <[email protected]> Date: Wed Aug 2 13:40:51 2023 -0700 Async Generator Wrapper (#884) * Add async generator wrapper * Add no harm test * Remove anext calls * Add graphql traces to decorator testing * Remove pypy generator gc logic --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> commit faf3ccc Author: Tim Pansino <[email protected]> Date: Mon Jul 31 15:10:56 2023 -0700 Add async_wrapper to datastore_trace api * Remove custom wrapper code from firestore * Undo wrapper edits --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Firestore Instance Info (#887) * Add instance info testing to query * Instance info for query.stream * Squashed commit of the following: commit 1c426c8 Author: umaannamalai <[email protected]> Date: Mon Jul 31 23:01:49 2023 +0000 [Mega-Linter] Apply linters fixes commit 7687c06 Author: Uma Annamalai <[email protected]> Date: Mon Jul 31 15:47:09 2023 -0700 Make instance info args optional. commit 53f8400 Author: umaannamalai <[email protected]> Date: Mon Jul 31 22:23:20 2023 +0000 [Mega-Linter] Apply linters fixes commit d95d477 Author: Uma Annamalai <[email protected]> Date: Mon Jul 31 15:20:41 2023 -0700 Update datastore trace wrapper to take instance info. * Add instance info testing to all apis * Separate transaction instance info tests * Implement all instance info getters * Squashed commit of the following: commit db3561e Merge: 844e556 edd1f94 Author: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Date: Wed Aug 2 22:10:32 2023 +0000 Merge branch 'develop-google-firestore-instrumentation' into feature-firstore-async-instrumentation commit 844e556 Author: Tim Pansino <[email protected]> Date: Wed Aug 2 15:09:49 2023 -0700 Remove custom wrapper code from firestore commit ad2999f Author: Tim Pansino <[email protected]> Date: Wed Aug 2 14:58:38 2023 -0700 Squashed commit of the following: commit 09c5e11 Author: Tim Pansino <[email protected]> Date: Wed Aug 2 14:33:24 2023 -0700 Add testing for automatic and manual asyncwrappers commit fc3ef6b Author: Tim Pansino <[email protected]> Date: Wed Aug 2 14:33:05 2023 -0700 Add async wrapper argument to all trace APIs commit 479f9e2 Merge: faf3ccc edd1f94 Author: Tim Pansino <[email protected]> Date: Wed Aug 2 13:44:24 2023 -0700 Merge remote-tracking branch 'origin/develop-google-firestore-instrumentation' into feature-async-wrapper-argument commit edd1f94 Author: Timothy Pansino <[email protected]> Date: Wed Aug 2 13:40:51 2023 -0700 Async Generator Wrapper (#884) * Add async generator wrapper * Add no harm test * Remove anext calls * Add graphql traces to decorator testing * Remove pypy generator gc logic --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> commit faf3ccc Author: Tim Pansino <[email protected]> Date: Mon Jul 31 15:10:56 2023 -0700 Add async_wrapper to datastore_trace api commit edd1f94 Author: Timothy Pansino <[email protected]> Date: Wed Aug 2 13:40:51 2023 -0700 Async Generator Wrapper (#884) * Add async generator wrapper * Add no harm test * Remove anext calls * Add graphql traces to decorator testing * Remove pypy generator gc logic --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> commit 29579fc Merge: 4a8a3fe 7596fb4 Author: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Date: Wed Aug 2 19:54:09 2023 +0000 Merge branch 'develop-google-firestore-instrumentation' into feature-firstore-async-instrumentation commit 7596fb4 Author: Uma Annamalai <[email protected]> Date: Wed Aug 2 12:53:29 2023 -0700 Update datastore_trace wrapper to take instance info (#883) * Update datastore trace wrapper to take instance info. * [Mega-Linter] Apply linters fixes * Make instance info args optional. * [Mega-Linter] Apply linters fixes * Add datastore trace testing. * Add background task decorator. * [Mega-Linter] Apply linters fixes * Fix typo in validator. --------- Co-authored-by: umaannamalai <[email protected]> commit 4a8a3fe Merge: 7bf6f49 dcc92a9 Author: Tim Pansino <[email protected]> Date: Mon Jul 31 14:51:20 2023 -0700 Merge remote-tracking branch 'origin/develop-google-firestore-instrumentation' into feature-firstore-async-instrumentation commit 7bf6f49 Author: Tim Pansino <[email protected]> Date: Mon Jul 31 14:34:26 2023 -0700 Refactor exercise functions to fixtures commit d3e4732 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 13:20:37 2023 -0700 Add async collection group instrumentation commit 5902515 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 13:09:13 2023 -0700 Use public API imports commit 9266924 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 13:04:19 2023 -0700 Re-merge of test_query commit b6bc9a4 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 13:01:27 2023 -0700 Remove reset_firestore commit 87fbe62 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 13:00:37 2023 -0700 Squashed commit of the following: commit c836f8f Author: TimPansino <[email protected]> Date: Thu Jul 27 19:54:35 2023 +0000 [Mega-Linter] Apply linters fixes commit 02a55a1 Author: Tim Pansino <[email protected]> Date: Thu Jul 27 12:46:46 2023 -0700 Add collection group instrumentation commit ab1f4ff Author: Tim Pansino <[email protected]> Date: Thu Jul 27 12:00:33 2023 -0700 Better parallelization safeguards commit fa5f39a Author: TimPansino <[email protected]> Date: Wed Jul 26 22:59:11 2023 +0000 [Mega-Linter] Apply linters fixes commit 9d411e0 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:57:39 2023 -0700 Clean out unnecessary code commit cb550ba Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:27:01 2023 -0700 Allow better parallelization in firestore tests commit e04ec6f Author: Tim Pansino <[email protected]> Date: Thu Jul 27 11:55:44 2023 -0700 Add instrumentation for AsyncTransaction commit 6b7fc79 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 16:56:04 2023 -0700 Add async batch instrumentation commit c392e78 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 16:36:03 2023 -0700 Async Query instrumentation commit aab244b Author: Tim Pansino <[email protected]> Date: Wed Jul 26 16:20:58 2023 -0700 Add async document instrumentation commit 3fb6a6c Author: Tim Pansino <[email protected]> Date: Wed Jul 26 16:11:17 2023 -0700 Add async collection instrumentation commit 7851baf Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:58:12 2023 -0700 Squashed commit of the following: commit 9d411e0 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:57:39 2023 -0700 Clean out unnecessary code commit cb550ba Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:27:01 2023 -0700 Allow better parallelization in firestore tests commit c49a1cf Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:54:13 2023 -0700 Add async client instrumentation commit c857358 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 15:53:21 2023 -0700 Fix issue in async generator wrapper commit 5693dd2 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:27:01 2023 -0700 Allow better parallelization in firestore tests commit fbe40ea Author: Tim Pansino <[email protected]> Date: Wed Jul 26 14:22:53 2023 -0700 Add async generator wrapper commit b9a91e5 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 12:21:25 2023 -0700 Consumer iterators on <=Py38 commit ef06df5 Author: Tim Pansino <[email protected]> Date: Wed Jul 26 12:01:25 2023 -0700 Add transaction instrumentation commit 2ce45c8 Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:55:50 2023 -0700 Instrument Firestore batching commit d17b62f Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:31:48 2023 -0700 Rename methods for clarity commit 6214f0b Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:30:23 2023 -0700 Combine query test files commit b4e8700 Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:23:03 2023 -0700 Simplify collection lookup commit a0c78a2 Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:18:51 2023 -0700 Fix deprecation warning commit 44598cc Author: Tim Pansino <[email protected]> Date: Tue Jul 25 15:15:13 2023 -0700 Add query and aggregation query instrumentation commit b9eaa5b Author: Tim Pansino <[email protected]> Date: Tue Jul 25 13:33:42 2023 -0700 Client instrumentation commit 19f5a48 Author: Tim Pansino <[email protected]> Date: Mon Jul 24 15:55:52 2023 -0700 Remove unnecessary settings lookups commit ba7850a Author: Tim Pansino <[email protected]> Date: Mon Jul 24 15:44:54 2023 -0700 Simplify existing instrumentation commit e07ffc3 Author: Tim Pansino <[email protected]> Date: Mon Jul 24 15:44:10 2023 -0700 Remove unnecessary instrumentation * Add instance info to async client * Simplify lookup logic for instance info * Precompute closures for memory usage * Undo wrapper edits * Fix typo * Change port from int ot str * Fix Generator Wrappers (#890) * Fix async wrapper implementations * Add regression testing --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> Co-authored-by: Timothy Pansino <[email protected]> Co-authored-by: TimPansino <[email protected]> Co-authored-by: umaannamalai <[email protected]>
- Loading branch information