Commit Graph

840 Commits

Author SHA1 Message Date
Bogdan Drutu db5347a3ee
Fix that disruptor does not accept events after shutdown. (#496) 2019-08-15 16:05:32 -07:00
Bogdan Drutu 5f87aff868
Remove record from Meter and add Measure type with record. (#488)
* Remove record from Meter and add Measure type with record.

* Add more tests.

* Fix tests.
2019-08-15 15:03:07 -07:00
Juraci Paixão Kröhling 6d1b31bfa6 Implemented the Jaeger Span Exporter using gRPC as the transport (#481)
* Implemented the Jaeger Span Exporter using gRPC as the transport

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Changes based on the first review

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Fixed parent references

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Added deadline and check the failure codes to determine whether to retry

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Added readme with comment about the proto files

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Removed dependency on the 'api' module

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2019-08-15 09:37:59 -07:00
Bogdan Drutu 0a0032bd0e
Remove description from LabelKey and use directly String. (#489) 2019-08-15 09:35:52 -07:00
qudongfang fc74e77ae6 Fix service provider not found exception message (#491)
* Fix service provider not found exception message.

Signed-off-by: qudongfang <qudongfang@gmail.com>

* Format with google java style.

Signed-off-by: qudongfang <qudongfang@gmail.com>
2019-08-14 19:29:26 -07:00
Armin Ruech a1d5556aa0 Update CONTRIBUTING.md (CLA no longer missing) (#492) 2019-08-14 08:45:34 -07:00
Bogdan Drutu 9ede324d9d
Remove unnecessary LabelValue object. (#433)
* Remove unnecessary LabelValue object.

* Remove the LabelValue class and all usages.
2019-08-13 16:21:28 -07:00
Bogdan Drutu 5acf1e87e1
Add an AsyncSpanProcessor that uses Disruptor. (#468)
* Add an AsyncSpanProcessor that uses Disruptor.

* Fix comments.

* Cleanup print messages and simplify tests

* Enforce shutdown to wait for all the processors to finish shutdown.
2019-08-13 10:51:11 -07:00
Pavol Loffay 5efb3c23e7 Remove travis config (#484)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-08-08 09:29:12 -07:00
Pavol Loffay d55a07aa90 Add CircleCI support (#478)
* Enable circle CI

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Use only jobs

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Split runs

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Move build task to template

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Move build task to template 2

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-08-08 07:06:02 -07:00
Jiří Daněk f1b1fef75a Fix typo in name of setMaxQueueSize setter (#480) 2019-08-07 14:02:37 -07:00
Bogdan Drutu 861f4e6c55
Add ResultCode to the SpanExporter interface. (#471)
* Add ResultCode to the SpanExporter interface.

* Add javadoc for public enums and fields.

* ./gradlew goJF

* Reapply suggestions.
2019-08-06 21:28:10 +02:00
Jiří Daněk 7ba128bbc1 Fix links in project structure section (#474) 2019-08-06 21:27:23 +02:00
Yang Song f42b6dc41b Fix all typos (#473)
Changes are generated with
$ make misspell-correction

See https://github.com/client9/misspell
2019-08-05 18:35:06 +02:00
Carlos Alberto Cortez 9380c5f9fb
Make Travis use the trusty distro. (#477) 2019-08-05 18:23:23 +02:00
Chris Kleinknecht 0478651e34 Fix typo in isRecordingEvents (#470) 2019-07-24 09:55:12 +03:00
Carlos Alberto Cortez cd06daa70e Update the InMemorySpanExporter creation calls from the testbed. (#465) 2019-07-11 09:08:39 -07:00
Carlos Alberto Cortez 37021abd30
Initial import of the OpenTracing testbed. (#427)
* Initial import of the OpenTracing testbed.
* Update the OT testbed to test against the SDK.
2019-07-11 17:28:26 +02:00
Bogdan Drutu 2304ad9a00
Fix javadoc comments in InMemorySpanExporter and add example of usage. (#464) 2019-07-11 07:10:49 -07:00
Bogdan Drutu 002f8667a6
Fail if any previous command fails. (#463) 2019-07-11 07:04:39 -07:00
Bogdan Drutu 8e368d2f4a
Split contrib into different packages. (#462)
* Split contrib into different packages.

* Update readme and build.gradle.
2019-07-10 13:19:10 -07:00
Bogdan Drutu 4c290e236d
Remove sync prefix from SpanProcessor interface methods. (#460) 2019-07-09 09:26:31 -07:00
Carlos Alberto Cortez 2488eef5ef Ignore parent if SpanContext.isInvalid() is true. (#459) 2019-07-09 07:13:47 -07:00
Bogdan Drutu 2379965a97
Use underscore instead of dash sign in the directory name. (#461) 2019-07-09 07:12:29 -07:00
Yang Song ada4edaa56 Change the order of measure type enum to match specs. (#458) 2019-07-03 11:41:03 -07:00
Yang Song 7471a94506 Change Sampler.shouldSample to accept list of Link. (#455)
* Change Sampler.shouldSample to accept list of SpanContext.

Fixes #437

* Improve test coverage.

* Change Sampler signature shouldSample to accept list of Links.
2019-07-01 16:44:55 -07:00
Bogdan Drutu 98bea4a9f6
Add batch span processor. (#456)
* Add batch span processor.

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSampledSpansProcessor.java

Co-Authored-By: Yang Song <songy23@users.noreply.github.com>

* Remove @SuppressWarnings(JdkObsolete) from tests.

* Add default values as constants, comment on setter about default values.

* Remove unnecessary since tag from tests.

* Change the batch creation logic to avoid checking the limit every time.
2019-07-01 16:44:34 -07:00
Bogdan Drutu b46027db20
Cleanup InMemorySpanExporter, implement shutdown and test. (#454)
* Cleanup InMemorySpanExporter, implement shutdown and test.

* Add a comment that reset does not rest the shutdown state.

* Rename cpp style variable to java.
2019-06-28 13:59:20 -07:00
Bogdan Drutu 33a53abca8
Add codecov and maven badges. (#453) 2019-06-28 13:27:51 -07:00
Bogdan Drutu bed544a5ed
Cleanup RecordEventsReadableSpan class. (#452)
* Small cleanup of RecordEventsReadableSpan

* Remove Impl from the RecordEventsReadableSpan class name.
2019-06-28 12:36:14 -07:00
Yang Song 4b57515d3c Improve SDK test coverage. (#451) 2019-06-28 12:00:57 -07:00
Yang Song da7ad86bee Move HTTP and binary trace context format to trace.propagation. (#450) 2019-06-28 10:23:01 -07:00
Yang Song a9054017f0 Return DefaultSpan if not recording events. Implement TracerSdk.shutdown(). (#447)
* Return DefaultSpan if not recording events.

Fixes #438

* Implement TracerSdk.shutdown().

Fixes #444.

* Fix review comments.

* Ignore recordEvent or sampler if already shut down.

* Remove isStopped. Fix synchronization.

* Improve test coverage.
2019-06-28 09:59:05 -07:00
Yang Song 5a1681855f Rename TraceContextFormat to HttpTraceContext. (#449) 2019-06-28 09:29:54 -07:00
Yang Song 0c19167ded Implement ReadableSpanData (#448)
* Implement ReadableSpanData

Fixes #442.

* Use onEndSync. Add a TODO.

* Improve test coverage.
2019-06-28 09:21:00 -07:00
Yang Song 3b6d6c5b17 Implement binary format on SpanContext. (#446)
* Implement binary format on SpanContext.

Fixes #443.

* Rename to BinaryTraceContext.
2019-06-28 09:17:33 -07:00
Bogdan Drutu c0a182c130
Remove TruncatableString from proto to sync with ot-proto. (#445) 2019-06-27 14:21:29 -07:00
Armin Ruech 36f80e1fdc Change DistributedContextSdk.Builder to use current dctx as implicit parent (#439)
* Change DistributedContextSdk.Builder to use current DistributedContext as implicit parent if none is provided explicitly

* Change DistributedContext.setNoParent to prevent inheriting an implicit context

* Clarify doc for DistributedContext.setNoParent

* Disallow null for DistributedContext.setParent
2019-06-27 14:20:54 -07:00
Yang Song 6378db90fe Replace DistributedContext.getIterator with getEntries. (#429)
* Replace DistributedContext.getIterator with getEntries.

Fixes #401.

* Clarify immutability in javadoc.
2019-06-27 10:38:29 -07:00
Pavol Loffay bff193d462 Connect span builder and span in SDK (#430)
* Connect span builder and span in SDK

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Use proto in tests

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Remove

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix review comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Add sampling attributes to span

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Remove line

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-27 10:28:58 -07:00
Bogdan Drutu c5e0bef56c
Remove grpc protocol from SDK copy of the protos. Not needed. (#441) 2019-06-26 10:51:13 -07:00
Armin Ruech ed42237b6c Remove DistributedContext.Builder.buildScoped() (#428)
* Remove DistributedContext.Builder.buildScoped()

* Specify default parent for DistributedContext
2019-06-25 11:01:39 -07:00
Pavol Loffay e715cd2d40 Remove public abstract from interface (#435)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-25 10:27:34 -07:00
Bogdan Drutu 34b4255faf
Add support to install SpanProcessor and an InMemorySpanExporter for tests. (#425)
* Add support to install SpanProcessor and an InMemorySpanExporter for tests.

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanBuilderSdk.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
2019-06-24 10:35:32 -07:00
Yang Song 22fde62aba Fix a potential ClassLoader deadlock and add missing Javadocs. (#411)
* Fix a potential ClassLoader deadlock and add missing Javadocs.
2019-06-22 16:18:04 +02:00
Bogdan Drutu 7e6f2ad871
Allow adding SpanProcessor in the TracerSdk. (#426) 2019-06-21 15:11:54 -07:00
Carlos Alberto Cortez 182856289d
OT Shim: Add a super basic InMemoryTracer. (#415)
* Add a super basic InMemorTracer for the OT Shim tests.
2019-06-21 16:45:34 +02:00
Bogdan Drutu c5dd0b9e11
Add a MultiSpanExporter that can be used to export to multiple expoters. (#423) 2019-06-20 18:08:23 -07:00
Bogdan Drutu 48269c7fc5
Add util implementation of the SpanProcessors. Not public. (#422) 2019-06-20 16:11:22 -07:00
Yang Song 5882c0f1a7 Implement RecordEventsSpanImpl.toSpanProto(). Add more unit tests. (#419)
* Implement RecordEventsSpanImpl.toSpanProto(). Add more unit tests.

Fixes #279.

* Avoid over locking. Add more tetst.

* Replace a magic number.

* Update two constants.
2019-06-20 14:45:14 -07:00