Commit Graph

22 Commits

Author SHA1 Message Date
Anuraag Agrawal 6dffbb8fc4
Migrate tests to JUnit5 (#1489)
* Add JUnit 5 dependency

* Revert unintended
2020-07-31 11:10:27 -07:00
Terry (Tianyu) Wang ad6f9e364c
Implemented TraceConfigZ zPage (#1441)
* Implemented TraceConfigZ zPage (#22)

* Added link to index zpage

* Used AutoValue for TableRow classes

* Changed wording of HTML content

* Changed Builder to interface, fixed build issues

* Removed tableRow classes, added omitEmpty in parseQueryMap

* Added test for invalid inputs

* Changed to use illegalArgumentException
2020-07-30 11:24:50 -07:00
William Hu 09c8c9ed94
Added preliminary documentation for the zPages contrib module (#1455) 2020-07-29 21:19:15 +02:00
Bogdan Drutu ab95a19680
Remove isSampled, follow up from #1449 (#1450)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-23 08:38:10 -07:00
Peter Travers 810379f88b
Refactor decision to sampling result (#1449)
* Refactor decision to sampling result

* Fix bad refactor samplingResult => decision

* Fix decision not sampling result

* Fix comments with divergent explanations of same entity

* Fix make comments clearer

* Add links to SamplingResult
2020-07-22 15:27:13 -07:00
William Hu 19da7d01cb
Removed URLEncoder from TracezZPageHandler (#1431)
* Removed URLEncoder

* Fixed typo

* Added URLDecoding

* Included comment for string replacement

* Added unit tests for special characters in span names

* Resolved URL decoding issues

* Moved url decoding to parseQueryMap and updated the corresponding unit tests
2020-07-21 19:24:41 -07:00
Terry (Tianyu) Wang 7c81379393
Removed nullable annotation for ZPagesHandlers container in IndexZPageHandler (#1429)
* Removed nullable annotation for ZPageHandlers container

* Fixed java style issues

* Removed null check
2020-07-17 10:04:39 -07:00
William Hu a938166a07
Added unit tests for SpanBucket (#1424)
* Added unit tests for SpanBucket

* Included a comment to make the last test more clear

* Rewrote the concurrency test

* Removed assertion from exception and added a time limit for the concurrency test case
2020-07-17 08:20:24 -07:00
Terry (Tianyu) Wang df14623402
Implemented index page for zPages (#1423)
* Added two abstract getter method for obtaining page information

* Added page information getter method

* Implemented index zPage handler

* Implemented index page for zPages

* Added unit test for index zPage

* Small style and comment fixes

* Increased font size, code style fix

* Fixed font size issue
2020-07-16 15:55:42 -07:00
Terry (Tianyu) Wang 98cb75695d
Fixed immutable list sorting bug in TraceZ zPage (#1420)
* Fixed immutable list sorting bug

* Added more test covering SpanDetails section

* Used ImmutableList.sortedCopyOf instead of ArrayList, added a test for unknown ztype

* Switched to immutableMap and immutableList
2020-07-16 10:08:40 -07:00
John Watson cb04118a21
Fix errorprone errors. (#1417) 2020-07-15 19:46:37 +02:00
Terry (Tianyu) Wang 373fbf4a2e
Implemented base zPages classes and TraceZ zPage (#1380)
* Implemented a span processor for the TraceZ zPage

* Implemented aggregation logic for running and latency based spans,
summary table generation with running span logic

* Implemented aggregation logic for error based spans

* Finished implementation of TraceZ zPage summary table

* Finished implementation of HttpHandler, HttpServer, and TraceZ zPage

* Refactored the sdk_contrib folder to follow updated syntax

* Removed duplicate function

* Changed inline base64 images

* Fixed copyright statement

* Modified the TracezSpanProcessor to only allow for a limited number of completed spans (#17)

* Modified the TracezSpanProcessor to only allow for a limited number of completed spans

* Renamed count functions and reduced logic in addToBucket

* Fixed typos and turned SpanProcessor and DataAggregator to package private

* Separated SpanBuckets and LatencyBoundaries from TracezDataAggregator

* Switched to PrintStream, removed bufferWritter, removed factory and changed to package private constructor, added documentation for getTracerzHandler behavior, and other small fixes

* Fixed package name

* Changed way of registering handlers, changed atomicBoolean to final, removed unnecessary lock

* Changed registerTracezZPageHandler to package private

* Fixed javadoc styling and wording

* Added constants for splitters, changed httpserver to compileOnly dependency

* Removed FQNs from backend files

* Removed style errors

* Updated TracezSpanProcessor to maintain a set of span names incrementally

* Added visibleForTesting tag, adjusted HTML expression

* Removed unused functions in the data aggregator

* Made TracezSpanBuckets thread-safe

* Changed test to use Mockitorule, removed unnecessary Formatter, unrolled attribute value

* Changed test with @Mock to use Mockito test runner

* Renamed LatencyBoundaries to LatencyBoundary and cleaned up code

* Replaced the EvictingQueue with a faster SpanBucket class and modified checks in TracezDataAggregatorTest

* Addressed additional comments

* Migrated images to resources, used logger to log errors, and other minor fixes

* Moved a variable to within a class in TracezZPageHandler

* Removed printStackTrace, added test for query parameter

* Changed logger to static field, used log method to log detailed stackTrace

* Made minor fixes

* Resolved unmodifiable list error with getOkSpans and getErrorSpans

* Changed map @Mock to empty map, added more test

* Changed test runner

Co-authored-by: williamhu99 <wilhu@google.com>
Co-authored-by: William Hu <32604217+williamhu99@users.noreply.github.com>
2020-07-15 08:51:29 -07:00
John Watson e1ddcaec24
update errorprone, grpc and autovalue (#1403)
Also, clean up new errorprone warnings
2020-07-12 07:56:44 -07:00
Lei Wang 241017bd4e
support container id in AWS ECS plugin (#1384)
* support container id in AWS ECS plugin

* fix comments; change apache common to guava
2020-07-01 10:26:52 -07:00
Lei Wang 4008f7d515
support aws plugins EC2/ECS/Beanstalk (#1369)
* support aws plugins EC2/ECS/Beanstalk

* support aws plugins EC2/ECS/Beanstalk

* change to Guava Files, change Map to Attributes

* Remove DockerHelper until has container.id in sematic conventions.
2020-06-25 16:17:26 -07:00
jarebudev 3273841899
stop description test from immediately exiting before the sampler is retrieved by rpc (#1364) 2020-06-22 08:03:56 -07:00
Bogdan Drutu 4633676593
Use lambda references where possible (#1355)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 11:54:14 -07:00
Bogdan Drutu 76ef38955a
Start using real java8 in tests. (#1352)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 09:09:28 -07:00
Bogdan Drutu aaec09d68d
Change samplers to use the new Attributes class (#1347)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 17:23:09 -07:00
Bogdan Drutu b5520ee14c
Change resource to use the new Attributes class (#1345)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 14:20:23 -07:00
John Watson f1f5975d5c
Introduce an ReadableAttributes interface, with 2 implementations (#1336)
* Introduce an Attributes interface and have ImmutableAttributes and the AttributesMap implement it.

* make the attribute limiting a little clearer.

* tiny javadoc fix

* Rework to restore the Attributes class, and introduce a ReadableAttributes interface

* polish the javadoc a bit

* fix some broken javadoc

* revert example change; revert test name change

* javadoc de-escalation

* fix bad merge
2020-06-17 09:29:52 -07:00
Nikita Salnikov-Tarnovski c558a9651b
Rename contrib to extensions (#1335) 2020-06-17 16:51:14 +02:00