Commit Graph

1163 Commits

Author SHA1 Message Date
Anuraag Agrawal 7828283b55
Exclude transitive dependencies in jmh configuration since gradle-jmh-plugin doesn't seem to handle them well. (#1536) 2020-08-13 07:58:14 -07:00
Terry (Tianyu) Wang ce8cfd4d5b
Changed TraceConfigz zPage form to use POST request (#1521)
* 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

* Added a README file for zPage quickstart

* Add images for README

* Updated README

* Add frontend images

* Add backend images

* Added our design doc

* Added details on package

* Reworded a few lines

* Moved DESIGN.md to a docs folder and changed gradle config to implementation

* Changed wording regarding HttpServer requirement

* Added zpages folder under docs, resolved broken image links

* Resolved comments for the design md file

* Made a few wording changes

* Wrote a benchmark test for TracezSpanBuckets (#23)

* Scaffolded logic for basic benchmark tests

* Wrote benchmark tests for TracezSpanBuckets

* Updated README with benchmark tests

* Changed the wording slightly

* Updated README file (#25)

* Wrote benchmark tests for TracezDataAggregator (#24)

* Scaffolded logic for basic benchmark tests

* Wrote benchmark tests for TracezSpanBuckets

* Updated README with benchmark tests

* Changed the wording slightly

* Added a set of benchmark tests for TracezDataAggregator

* Modified README formatting

* Changed benchmark test to negate dead code elimination

* Added Javadocs to the TracezDataAggregator benchmark tests

* Removed benchmark results from README and added a param to the TracezDataAggregator benchmark tests

* Update sdk_extensions/zpages/src/jmh/java/io/opentelemetry/sdk/extensions/zpages/TracezDataAggregatorBenchmark.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Added multiple param values for TracezDataAggregatorBenchmark

* Changed TraceConfigz zPage form submit to use POST request

* Added requestMethod parameter to emitHtml, limited TraceConfig change on POST request only

* Removed duplicate parse function, added test for update on POST request only

* Added separate method for processing request

* Removed unnecessary error check in tests, used try resources for inputstream

Co-authored-by: williamhu99 <wilhu@google.com>
Co-authored-by: William Hu <32604217+williamhu99@users.noreply.github.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-08-12 08:20:29 -07:00
Anuraag Agrawal 7cd931c558
Return SDK attributes in default Resource. (#1528)
* Populate SDK resource by default.

* Add test

* Newline

* Revert "Newline"

This reverts commit e6ff4b4999.

* Revert "Add test"

This reverts commit f2eaa7c62a.
2020-08-11 08:31:14 -07:00
Frieder Bluemle f5a611ac71
Update Gradle Wrapper to 6.6 (#1529) 2020-08-11 08:01:14 -07:00
Anuraag Agrawal 8a95b34308
Add Attributes.toBuilder (#1516)
* Add Attributes.toBuilder

* Add tests that original instance not mutated.
2020-08-10 19:02:47 -07:00
Anuraag Agrawal c930e033f8
Return Span from DefaultSpan factories. (#1519) 2020-08-10 13:04:19 -07:00
Trask Stalnaker 0d0ee07ec5
Add RecordEventsReadableSpan toString (#1522)
* Add RecordEventsReadableSpan toString

* lock

* optimized
2020-08-10 09:04:45 -07:00
John Watson 5b4e0a8e0b
update the changelog for 0.7.0 (#1515) 2020-08-07 16:22:43 +02:00
Anuraag Agrawal 05f336fb4a
Update to latest RPC semantic attributes. (#1520) 2020-08-07 16:17:43 +02:00
Sergei Malafeev 6c31db4521
fix splitting metadata key-value substring with more than one '=' sign (#1518)
* fix splitting metadata key-value substring with more than one '=' sign

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add testing of metadata key-value pair with more than one '=' sign

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add trimResults() and omitEmptyStrings()

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* reformat and add more test cases

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-08-07 15:59:52 +02:00
William Hu bcb1d4aca2
Wrote benchmark tests for the zPages module (#1504)
* 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

* Added a README file for zPage quickstart

* Add images for README

* Updated README

* Add frontend images

* Add backend images

* Added our design doc

* Added details on package

* Reworded a few lines

* Moved DESIGN.md to a docs folder and changed gradle config to implementation

* Changed wording regarding HttpServer requirement

* Added zpages folder under docs, resolved broken image links

* Resolved comments for the design md file

* Made a few wording changes

* Wrote a benchmark test for TracezSpanBuckets (#23)

* Scaffolded logic for basic benchmark tests

* Wrote benchmark tests for TracezSpanBuckets

* Updated README with benchmark tests

* Changed the wording slightly

* Updated README file (#25)

* Wrote benchmark tests for TracezDataAggregator (#24)

* Scaffolded logic for basic benchmark tests

* Wrote benchmark tests for TracezSpanBuckets

* Updated README with benchmark tests

* Changed the wording slightly

* Added a set of benchmark tests for TracezDataAggregator

* Modified README formatting

* Changed benchmark test to negate dead code elimination

* Added Javadocs to the TracezDataAggregator benchmark tests

* Removed benchmark results from README and added a param to the TracezDataAggregator benchmark tests

* Update sdk_extensions/zpages/src/jmh/java/io/opentelemetry/sdk/extensions/zpages/TracezDataAggregatorBenchmark.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Added multiple param values for TracezDataAggregatorBenchmark

Co-authored-by: Terry Wang <wtyanan@google.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-08-06 20:02:41 -07:00
John Watson d6d804e7ec
Remove the instrumentation library name from the prometheus metric names (#1510)
* Remove the instrumentation library name from the prometheus metric names.

* fix the other test
2020-08-06 13:13:08 -07:00
Anuraag Agrawal 66c5054f2d
Move TestSpanData to a testing package instead of in the published SDK. (#1512) 2020-08-06 09:44:44 -07:00
Anuraag Agrawal 22268d43f7
Remove log4j extension which was moved to instrumentation repo. (#1513) 2020-08-06 16:29:04 +02:00
Anuraag Agrawal e2554f40e9
Migrate most remaining tests to JUnit5. (#1514) 2020-08-06 16:23:11 +02:00
Christian Neumüller ccd2f0339e
Enable errorprone's ExpectedExceptionChecker (#1508)
Since we migrated to a newer Junit (even later Junit 4 versions would have had assertThrows) and Java 8, we can use assertThrows.
2020-08-05 09:46:48 -07:00
dengliming e2b0fef326
Fix possible test failure (#1509) 2020-08-05 09:30:21 -07:00
John Watson b59a10ea0e
Update the runtime metrics to match the OTEP that sets the (#1505)
semantic conventions.

OTEP is here:  https://github.com/open-telemetry/oteps/blob/master/text/0119-standard-system-metrics.md
2020-08-04 17:22:57 -07:00
MitchellDumovic c44230043e
Add documentation about Java Logger for Error Handling (#1501)
* Include documentation about Java Logger for Error Handling

* Update docs link to java7
2020-08-04 12:44:31 -07:00
dengliming 3130f07beb
Remove javadoc warnings (#1494)
* Remove javadoc warnings

* fix

* Fix review
2020-08-04 12:40:51 -07:00
Anuraag Agrawal 8d0a4787ff
Migrate from Truth to AssertJ (#1493)
* Migrate from Truth to AssertJ

* Fix test

* Update andAndUpdate
2020-08-03 17:08:36 -07:00
Carlos Alberto Cortez b002d75212
Start 0.8.0 development cycle (#1497) 2020-08-03 17:07:13 -07:00
John Watson 4680c3a327
Fix examples from the latest updates. (#1495) 2020-08-03 19:31:16 +02:00
Nikita Salnikov-Tarnovski 70e84334c0
Add new configuration option to limit the size of string attribute values (#1484)
* Add new configuration option to limit the size of string attribute values

* Polish

* Polish

* Polish

* Polish

* Add benchmark.

* Format

* Format
2020-08-03 08:11:58 -07:00
Anuraag Agrawal 6dffbb8fc4
Migrate tests to JUnit5 (#1489)
* Add JUnit 5 dependency

* Revert unintended
2020-07-31 11:10:27 -07:00
dengliming a024cca5fb
Add public constants for all exporter default configuration values (#1486) 2020-07-31 18:37:53 +02:00
Nikita Salnikov-Tarnovski 074d53b8a0
Fix too noisy B3 propagator (#1481)
* Fix too noisy B3 propagator

* Reduce log level
2020-07-31 09:27:12 -07:00
Anuraag Agrawal 881dab3c27
Update Gradle to 6.5.1 (#1488)
* Update Gradle to 6.5.1

* Add change that was in wrong branch.
2020-07-31 07:57:04 -07:00
Carlos Alberto Cortez 199df3a25c
Do simple logging for failed export. (#1480)
* Simple logging for failed export.

* Use WARNING instead of SEVERE.
2020-07-30 19:43:28 -07:00
Christian Neumüller 0f322b34d7
Fix SpanWrapper snapshot being incomplete. (#1482)
* Fix SpanWrapper snapshot being incomplete.

* Improve clarity of unit test.

* Add javadoc for SpanWrapper.

* Remove 'flyweight' from docstring.
2020-07-30 15:22:32 -07:00
Christian Neumüller f7a5233651
Don't add runtime-dependency on javax-annotations. (#1485) 2020-07-30 14:04:29 -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
Bogdan Drutu 78ed6490ba
Propose @anuraaga as approver (#1451)
* Propose @anuraaga as approver

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update README.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-07-29 19:15:47 -07:00
William Hu 09c8c9ed94
Added preliminary documentation for the zPages contrib module (#1455) 2020-07-29 21:19:15 +02:00
dengliming 24ab6c37f0
Hide EnvAutodetectResource ro reduce public classes (#1477) 2020-07-29 16:17:45 +02:00
MitchellDumovic 9c2b3e45b7
Change default sampler to ParentOrElse(AlwaysOn) (#1474) 2020-07-29 06:53:05 -07:00
Trask Stalnaker 75a425352e
Use OkHttpSender in ZipkinSpanExporter (#1475) 2020-07-29 06:52:36 -07:00
Frank Spitulski 96e8523544
feat(extensions): ot-tracer propagator (#1458)
supports propagation headers used by lightstep tracers
2020-07-27 23:53:26 +02:00
MitchellDumovic 9350f485f9
B3: Add Additional Validity Checks and tests for Trace and Span ID (#1457) 2020-07-27 19:50:10 +02:00
dengliming 177b1dcd3b
Support system property otel.resource.attributes corresponding to OTEL_RESOURCE_ATTRIBUTES (#1466) 2020-07-27 18:52:32 +02:00
Anuraag Agrawal 8005c7eddd
Return a readable tostring for attribute setters. (#1470) 2020-07-27 13:39:43 +02:00
Trask Stalnaker 84571612b3
Fix Jaeger exporter system property config (#1461)
* Fix Jaeger exporter system property config

* Address feedback

* feedback

* oops

* javadoc

* javadoc
2020-07-25 13:46:40 -07:00
Trask Stalnaker 0b8858205b
Set default endpoint for OTLP exporters (#1464)
* Set default endpoint for OTLP exporters

* feedback

* javadoc
2020-07-25 13:45:47 -07:00
Helen Y 8525405239
Update database attributes (#1459)
* Add new database attributes

* Address comments

* Update javadoc and rename

* Update javadoc for Cassandra.

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Rename Cassandra constant.

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Apply GoogleJavaFormat

* Fix javadoc exception

* Delete db.url

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-07-24 13:33:53 -07: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
Anuraag Agrawal f816ad5733
Implement Span.recordException (#1434)
* Implement Span.recordException

* License

* javadoc

* Fix javadoc

* Tests for DefaultSpan

* PrintStream benchmark

* Check arguments

* Use StringWriter

* more merge and event name

* Remove timestamp recordException
2020-07-22 18:53:26 -07:00
MitchellDumovic 23b27d7d97
Add ParentOrElse Sampler (#1444)
* Fix bug where Sampling status would not propagate from parent to child correctly

* use generic parentorelse sampler instead

* bring back alwayson as default sampler
2020-07-22 16:20:45 -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
Giovanni Liva 88da16e3ed
Forbid empty/null keys (#1440) 2020-07-22 16:20:44 +02:00
Anuraag Agrawal 498b245c57
Add version of attribute setters that operate on Attributes. (#1446) 2020-07-21 20:00:31 -07:00