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

62 Коммитов

Автор SHA1 Сообщение Дата
Tatsuya Sato 60c3c1bd23 Fail to load the rack middleware 2019-02-10 10:26:00 +09:00
Sergey Kanzhelev 29509a4c73
Merge pull request #66 from satoryu/fix_test_fails_in_travis
Fix test fails in travis
2019-01-04 10:29:34 -08:00
Tatsuya Sato 7533e313e1 Use old syntax to keep support ruby 1.9.3 2019-01-04 22:48:28 +09:00
Tatsuya Sato ffd56c3bf0 Correct classname autoloaded 2019-01-04 16:23:13 +09:00
Sergey Kanzhelev 878d716b73
Merge pull request #64 from satoryu/track_page_view
Rack Middleware for Tracking Page Views
2019-01-03 16:35:17 -08:00
Tatsuya Sato a7a12d6ac5 Rename the middleware.
Refer to the following comment:
https://github.com/Microsoft/ApplicationInsights-Ruby/pull/64#discussion_r244918319
2019-01-03 16:40:04 +09:00
Tatsuya Sato b2ce685c1c Add test code for the new rack middleware 2019-01-03 10:40:01 +09:00
yantang 5aa923bf24 Fix unstable test cases 2018-05-02 16:16:47 -07:00
yantang c564877063 Fix more test failures caused by bugs in schema generator 2018-05-02 15:00:21 -07:00
yantang 29671ff3c9 Fix couple test cases 2018-05-02 14:19:10 -07:00
yantang 2c8216a43d Update schema with latest schema generator that has couple fixes 2018-05-02 11:15:10 -07:00
Sergey Kanzhelev de92ca6972 Use schema generator to update the schema to the latest 2018-05-02 11:09:00 -07:00
Matt Rayner b19d6c60a0
Implement @yantang-msft's comments 2018-05-01 22:57:41 +01:00
Matt Rayner 5698606822
Update ApplicationInsights::Rack::TrackRequest to write directly to a channel 2018-05-01 17:56:21 +01:00
Matt Rayner 44747e8d32
(WIP) Improve implementation and add logging 2018-04-30 23:13:52 +01:00
Matt Rayner fc10405f9f
Update `ApplicationInsights::Rack::TrackRequest` to create a fresh client each request 2018-04-28 22:02:24 +01:00
Matt Rayner 02778374c1
Implement operation context values for track_request 2018-04-28 00:09:03 +01:00
Matt Rayner 216dc567a7
Updated implementation to generate variable length IDs
* When generating new IDs, 16 characters of data are used
* When appending an ID, 8 characters of data is used
2018-04-27 22:54:08 +01:00
Matt Rayner 267a197c63
Add functionality to fetch and parse a Request-Id header 2018-04-27 01:21:31 +01:00
Matt Rayner 8d2a358b48
[#48] Expose request id within parent app when using middleware
* Update TravisCI testing matrix
* Update CHANGELOG
* Update README
* Update `ApplicationInsights::Rack::TrackRequest#call` to implement the above
* Add associated tests
2018-04-26 23:49:19 +01:00
Yanming Tang 695c1af34d Log failed request and expose timestamp as an optional parameter (#49)
* Add basic logging when failed to send telemetry

* Log error when async sender thread terminated abnormally

* Lower log level to warning if failed to send request to the server

* Add timestamp to the options of the track methods, which helps in the cases of high precision or delayed tracking calls.

* Add test cases for custom timestamp in track methods

* Add test logger for unit tests

* Expose timestamp as an optional parameter only at telemetry channel but not at the track methods

* Update Changelog.md

* Make the optional timestamp parameter either of String type or Time type.
2018-04-26 07:05:18 -07:00
yantang 03142241ee Update telemetry context data contract to match current schema 2018-04-02 14:04:13 -07:00
Tatsuya Sato 788b9cce86 Merge branch 'master' into suppress_deprecation_warning 2017-07-31 23:36:13 +09:00
Aaron Patterson a60f44793b When a failed request is sent, the "success" field is set to "false" and this causes the field is omitted from the JSON. The backed does not accept the message because the "success" field is missing though.
Updating to include fields in the JSON even when they are false.
2017-07-05 16:12:10 +02:00
Aaron Patterson 1aa2f4f3e0 Merge remote-tracking branch 'upstream/develop' into fix-track-request 2017-07-03 13:41:07 +02:00
Aaron c78bb54c8b Merge branch 'develop' into master 2017-07-03 04:35:06 -07:00
Aaron Patterson b19de3f4ee AI reports an error when sending requests currently. The "duration" field is not in the expected format. AI expects "dd.hh:mm:ss.fffffff" and the SDK is sending "d:hh:mm:ss.fffffff".
Also updating to use "true" instead of "TRUE" as the "TRUE" constant was deprecated in Ruby 2.4
2017-06-29 12:43:28 -07:00
Tatsuya Sato 1a155ddfc7 Remove unused variable 2017-06-27 20:13:13 +09:00
Tatsuya Sato 61af4ca28f Suppress deprecation warnings 2017-06-27 20:09:30 +09:00
Chris Green 8371b30dc5 Duration TimeSpan formatting did not match what the API expects. Modified to match. 2016-06-24 15:04:10 -04:00
Stefan Haubold 7d87b3b85a adding unit test for authUserId on user 2015-12-04 15:25:07 -08:00
Jing Li 96601429f5 Re-generate contract tests 2015-04-02 16:59:46 -07:00
eMancu 2a69711d51 Align documentation to ~80 chars and code style changes 2015-04-01 21:13:06 -03:00
eMancu f0321d22bb Remove trailing spaces 2015-04-01 21:12:26 -03:00
eMancu 0c2f0caf56 Merge remote-tracking branch 'upstream/develop' into refactor/contracts 2015-03-09 09:41:35 -03:00
eMancu 6369b1ac69 Revert "Tests must be updated given the JSON generated put"
This reverts commit 3b7e2e829a.
2015-03-09 09:33:51 -03:00
eMancu fd6468cf68 Reorder fields of each schema 2015-03-09 09:26:08 -03:00
eMancu 0e514f6df2 Merge remote-tracking branch 'upstream/master' into refactor/contracts 2015-03-05 00:52:51 -03:00
Jing Li d00c6671f0 Fix test failure 2015-03-04 16:40:14 -08:00
Jing Li 43416c9eb5 Update contracts based on latest schema 2015-03-04 16:08:39 -08:00
eMancu 5db8c63a3f Merge remote-tracking branch 'upstream/master' into refactor/contracts 2015-03-04 14:52:50 -03:00
eMancu 3b7e2e829a Tests must be updated given the JSON generated put
the attributes in a different order.
2015-03-04 14:37:30 -03:00
eMancu e351fc7933 Fix some tests 2015-02-27 03:08:02 -03:00
Jing Li 88a49aba29 Fix sdk version;
Drop failed messages;
2015-02-26 17:38:28 -08:00
Jing Li d18bd315ae Add Rack middleware: TrackRequest 2015-02-10 11:06:29 -08:00
Jing Li f7525822a8 Address issue https://github.com/Microsoft/AppInsights-Ruby/issues/3 2015-02-09 13:56:52 -08:00
Jing Li (AI) 931c835cde Fix auto loading TrackRequest middleware 2015-02-07 23:40:10 -08:00
Jing Li (AI) 39aa8d7697 Adjust track_trace to be able to set severity level 2015-02-07 14:07:57 -08:00
Jing Li c226cb0643 Track unhandled exception together with failed request 2015-01-27 14:23:23 -08:00
Jing Li 89ade8a477 Capture failed requests caused by unhandled exception;
Add more tests for TrackRequest
2015-01-27 13:13:18 -08:00