-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Statsbeat * Fix merge conflicts * Add Statsbeat Helper * Track instrumentation list and encode it as long * Track instrumentation names * Add java.vendor to the feature list * Add Attach statsbeat * Add azure metadata service api call * Put common custom dimensions in the base statsbeat * Test azure metadata sevice call on both linux and windows * Add statbest metric names * Add scheduler to send statsbeat * Reset after each interval * Refactor update frequency interval * Remove unused imports * Increment network statsbeat counters * Add tests * Add tests for encode/decode feature * Add StatsbeatModule * Use non-static methods * Add unit tests for NetworkStatsbeat * Add tests for AttachStatsbeat * Add tests for FeatureStatsbeat * Refactor tests * Update instrumentations map * Sort instrumentation list alphabetically * Fix failed tests * Send statsbeat to a testing ikey * Refactor * Refactor * Fix nullpointerexception in instrumentation list * Send network statsbeats when its count is not zero * Refactor * Move private instance variables to the top of the class * Reinit resourceProviderId after reset * Track request durations * Remove unnecessary changes * Fix merge conflicts * Set feature statsbeat to have daily interval * Clean up logs * Reset after send is done * Add smoke test * Use the default ingestion endpoint if statsbeat's endpoint is unknown * Get statsbeat ikey from the config * Delete StatsbeatTelemetry * Make smoke test work * Make smoke test stable * Revert a line * Fix unit tests compilation errors * Make feature interval configurable * Fix not seeing network and attach statsbeat in smoketest * Update smoke test config * Validate more statsbeats in the smoke test * Enable more smoke test app servers for Statsbeat * Address comments * Address comments * Fix lgtm * Make MetricTelemetry class final since there is no need for StatsbeatTelemetry * Update statsbeat iKey to be a workspace based mode * Fix spotbug, make constants package protected * No need for lazy init * User more efficient entrySet instead of keySet * Fix spotbugs * Init azure metadata service in AttachStatsbeat * No need for lazy init * Fix nullpointerexception in ErrorHandlerTest and ThrottlingHandlerTest * Fix exception messages * Fix a nullpointerexception * Handle race condition between send and reset * Add unit test for race condition * Make sense to make metadata service have the same interval as AttachStatsbeat * Decide precisely when to shutdown AzureMetadataService * Clean up debug logs * Avoid reading resources from signed jar - logging configuration * Avoid reading resources from signed jar - sdk version * Add ignore matcher for ai agent classes * Add signed jar access debug option * Convert appsvc logging configuration also * CLEAN UP SHADOW JAR * Update submodule * Cleanup * Igore a test for now * Fix Illegal reflective access by org.junit.contrib.java.lang.system.EnvironmentVariables * Fix unit tests * Remove unused instance var * Fix test failures * Delete a console output log * Fix spotbug DC_DOUBLECHECK * Fix statsbeat smoke test not sending 'Request Duration' * Fix a compiling error in unit test * Address feedback * Make statsbeat config internal and skip parsing the connection string * Address feedback * Track total and count for request durations * Address more feedback * Address feedback * Use BitSet and move decode to a test utils class * Remove transient properties since it's not using failOnUnknown on json adapter * Refactor AttachStatsbeat * Refactor AzureMetadataService * Reduce visibility * Refactor StatsbeatModule * Introduce resetForTest * Make a couple things volatile * A bit more * Simplify * Update singleton naming a bit * Reduce reliance on singletons for testing * Reduce reliance on singletons for testing * Synchronization * Use long instead of double * Fix a compiling error * Remove unused methods * Remove unused imports * Fix statsbeat module is not properly initialized * Use AtomicLong for consistency * Fix array index out of bound * Fix ThrottlingTest * Fix ErrorHandlerTest * Reuse requestSuccessCount for requestDurationCount * Throw an exception when init gets called more than once * Switch expected and actual parameters in tests * Atomicity * Can not be null * Inline * Warning message * Remove null check * Remove null check * Add name to TODO * Remove getInterval method * Extract ResourceProvider into enum * Extract OperatingSystem into enum * Extract Feature enum * Fix ErrorHandlerTest and ThrottleingHandlerTest * Convert CustomDimensions to use explicit fields * Move more constants out of Constants * Move more constants out of Constants * Move more constants out of Constants * Move more constants out of Constants * Remove unused field * Add todo * Small renaming * Remove StatsbeatHelper * Comments * Send base 64 encoded string instead of utf-8 string for instrumentation and feature * Add missing copyrights * Add a comment * Spotbugs * Remove todos * Fix instrumentation is empty in the payload * WithoutPadding on Base64 encoder Co-authored-by: Trask Stalnaker <[email protected]>
- Loading branch information
Showing
46 changed files
with
1,813 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.