Changeset 1882017
- Timestamp:
- 05/26/2018 08:30:18 PM (8 years ago)
- Location:
- application-insights/trunk
- Files:
-
- 4 edited
-
.gitignore (modified) (1 diff)
-
CONTRIBUTING.md (modified) (2 diffs)
-
README.txt (modified) (1 diff)
-
src/Server_Instrumentation.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
application-insights/trunk/.gitignore
r1067499 r1882017 160 160 # Mac desktop service store files 161 161 .DS_Store 162 /.cr 163 /.vs -
application-insights/trunk/CONTRIBUTING.md
r1879544 r1882017 5 5 ## Build and Test locally 6 6 7 1. Run `compose install` to install all dependencies.7 1. Run `composer install` to install all dependencies. 8 8 2. Change to docker directory: `cd docker` 9 9 3. Run `docker-compose up -d`. This step assumes you have docker installed and configured. … … 41 41 The command `docker-compose down --volumes` removes the containers, default network, and the WordPress database. 42 42 43 ## How to release a new version 44 45 This is a section for maintainers. 46 47 See instructions here: https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/ 48 49 ``` 50 svn co https://plugins.svn.wordpress.org/application-insights application-insights 51 cd application-insights/ 52 rm -rf trunk/ 53 mkdir trunk 54 cp -r ../../wordpress/ trunk/ 55 cd trunk/ 56 rm -rf .gitignore 57 rm -rf .gitattributes 58 rm -rf .git 59 svn add trunk/* 60 svn ci -m "updated to the latest version" --username ApplicationInsights --password "" 61 ``` 62 43 63 ## Contributing 44 64 -
application-insights/trunk/README.txt
r1879544 r1882017 22 22 == Installation == 23 23 24 1. Run `compose install` 25 2. Upload all files to the '/wp-content/plugins/' directory. 26 3. Activate the plugin through the 'Plugins' menu in WordPress. 27 4. Go to Settings -> Application Insights and enter the Instrumentation Key you received from http://portal.azure.com. Use direct link https://ms.portal.azure.com/#create/Microsoft.AppInsights to create a new Application Insights resource. 24 1. Upload all files to the '/wp-content/plugins/' directory. 25 2. Activate the plugin through the 'Plugins' menu in WordPress. 26 3. Go to Settings -> Application Insights and enter the Instrumentation Key you received from http://portal.azure.com. Use direct link https://ms.portal.azure.com/#create/Microsoft.AppInsights to create a new Application Insights resource. 28 27 29 28 == Changelog == -
application-insights/trunk/src/Server_Instrumentation.php
r1879544 r1882017 36 36 $requestName = Common::getPageTitle(); 37 37 $startTime = $_SERVER["REQUEST_TIME"]; 38 $duration = timer_stop(0, 3) * 1000;38 $duration = floatval(timer_stop(0, 3)) * 1000; 39 39 $this->_telemetryClient->trackRequest($requestName, $url, $startTime, $duration, http_response_code(), !is_404()); 40 40
Note: See TracChangeset
for help on using the changeset viewer.