Commit Graph

454 Commits

Author SHA1 Message Date
Bogdan Drutu 605c06df94 Bump version to 0.2.1-SNAPSHOT
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-11-19 11:51:26 -08:00
Bogdan Drutu c232b03ead Bump version to 0.2.0
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-11-19 11:50:40 -08:00
Bogdan Drutu 1a3fefb2e9
Rename MeasureBatchRecorder to BatchRecorder to allow other types to be recorded. (#675)
* Rename MeasureBatchRecorder to BatchRecorder to allow other types to be recorded.

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

* ./gradlew goJF

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-11-17 09:32:09 -08:00
Peter Travers ffafe25d0a Add named meter and meter factory (#668)
* Add named meters with factory provider

* Fix documentation to instantiate a meter from a meter factory

* Fix documentation incorrectly referencing meter not meter factory

* Fix MeterFactor not Meter

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

* Fix MeterFactor not Meter

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

* Fix MeterFactory not Meter

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

* Fix over 100 characters in line

* Refactor meter example names to my_library_example
2019-11-13 13:25:54 -08:00
Gary Brown 6607bd784c Set the type of the tags within the Jaeger exporter (#669)
* Set the type of the tags within the Jaeger exporter

Signed-off-by: Gary Brown <gary@brownuk.com>

* Address comment

Signed-off-by: Gary Brown <gary@brownuk.com>

* Address comments

Signed-off-by: Gary Brown <gary@brownuk.com>
2019-11-11 17:18:30 +02:00
Gary Brown d225c1086f Fix NPE when using non-OK status with a null description (#667) 2019-11-07 02:21:12 -08:00
Sameeksha Vaity 91b6c1fe41 Create from remote parent on valid parent context (#656)
* create span context from remote parent on valid parent context

* checking if parent type remote parent

* add hasRemoteParent to SpanData

* make hasRemoteParent primitive boolean

* update @since tag

* formatting correction
2019-11-05 09:56:39 -08:00
Bogdan Drutu 420a51c559
Make InstrumentationLibraryInfo otherwise cannot be accessed in the public APIs (#658)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-11-01 07:34:11 -07:00
Armin Ruech 5e745481aa Add instrumentation library resource to named tracers (#632)
* Add instrumentation library resource to named tracers

* Introduce constants for library resource label keys

* Introduce InstrumentationLibraryInfo class to replace library resource
2019-10-31 12:53:45 -07:00
Bogdan Drutu ea57973deb
Ensure that only one tracer is created (#657)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-30 17:07:03 -07:00
Carlos Alberto Cortez 08440dd6db
Inherit the parent OT SpanContext baggage/distContext. (#648) 2019-10-31 00:54:21 +01:00
Bogdan Drutu 69a0f465cb
Cleanup deprecated methods in TracerSdk (#651)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-30 15:12:46 -07:00
Bogdan Drutu 478eb3b8d0
Remove hasRemoteParent option from Sampler, it is part of parent SpanContext (#653)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-29 19:27:33 -07:00
John Watson d75c017cf8 point at the right place for the contributing link (#652) 2019-10-29 15:26:34 -07:00
Bogdan Drutu e718915fe5
Remove trace config and shutdown from TracerSdk (#647)
* Remove trace config from TracerSdk

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

* Remove shutdown from TracerSdk

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-29 13:22:42 -07:00
Bogdan Drutu ce1cd9c3bd
Remove Timestamp and change start/end times to use epoch nanos (#646)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 19:51:39 -07:00
Bogdan Drutu 618e656e5f
Move Clock to common so other artifacts can override or inject (#643)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 15:52:00 -07:00
Bogdan Drutu 0ac9478197
Increase version to 0.2.0-SNAPSHOT (#644)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 14:11:57 -07:00
Bogdan Drutu 1542991454
Use epoch nanos everywhere instead of nano time in the Span implementation (#639)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 13:14:23 -07:00
Bogdan Drutu 050e262afc
Extract the shared state between Tracers in TracerSharedState. (#641)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 12:23:53 -07:00
Jason Plumb 8aeada6b54 Leverage a private object monitor lock instead of synchronizing on "this". (#612)
* Leverage a ReentrantReadWriteLock instead of synchronizing on this.

* remove lazy init of events

* just use a basic synchronized block

* appease checkstyle

* small tweaks, post-rebase

* fix synchronized after rebase
2019-10-28 10:52:14 -07:00
Bogdan Drutu db0812c50b
Extract trace id generator in an interface to allow different implementations (#640)
* Extract trace id generator in an interface to allow different implementations

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

* Fix typos in IdsGenerator.
2019-10-28 10:43:10 -07:00
Bogdan Drutu 741a635841
Convert SpanData TimedEvent to use epoch nanos (#638)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 08:16:50 -07:00
Bogdan Drutu a44def3b05
Remove usage of Timestamp in metrics (#637)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 07:49:06 -07:00
Bogdan Drutu 54c29dbaa1
Implement support for epoch timestamps for events (#635)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-26 08:21:44 -07:00
Bogdan Drutu bd14f39727
Change clock and converter to use epoch nanos (#636)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-25 13:35:11 -07:00
Carlos Alberto Cortez ab00d64b4c
Use a weak, synchronized map to store the OT SpanContext. (#620)
* Use a weak, synchronized map to store the OT SpanContext.

This is a correct, albeit slow, implementation of OT SpanContext,
which requires SpanContext to contain baggage
(DistributedContext/TagMap under OTel), and have it replaced
upon any change.
2019-10-25 19:11:15 +02:00
Carlos Alberto Cortez 25416034c3 Add explicit timestamp for Span events in the API. (#631) 2019-10-25 09:38:55 -07:00
Bogdan Drutu 9c207f7459
Set default binary propagator. (#630)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-24 19:16:07 -07:00
Bogdan Drutu c2f9168e8f
Move sampler to the SDK (#625)
* Move sampler to the SDK

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

* Fix javadoc

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

* Update sdk/src/main/java/io/opentelemetry/sdk/trace/config/TraceConfig.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
2019-10-24 11:06:32 -07:00
Bogdan Drutu 0b21928db5
Add isRemote to the SpanContext (#626)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-24 08:22:55 -07:00
Bogdan Drutu c24e4a9636
Some minor cleanups (#627)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-23 19:48:40 -07:00
Bogdan Drutu bcc6202531
Add @jkwatson to CODEOWNERS (#624) 2019-10-23 09:24:26 -07:00
Bogdan Drutu b4e007cbf9
Remove util/Links.java (#623)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-22 19:40:30 -07:00
Bogdan Drutu d6befaf711
Remove special timestamp definition (#619)
* Remove sepcial timestamp definition

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

* Update api/src/main/java/io/opentelemetry/trace/Span.java

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

* ./gradlew goJF

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

* fix build

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-22 18:14:55 -07:00
Bogdan Drutu 7c0af113a1
Remove util/Events. (#622)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-22 17:32:11 -07:00
Bogdan Drutu 238d42a093
Fix build and add more tests (#621)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-22 17:02:59 -07:00
John Watson 60ba3b7547 Add named tracers to the API (#584)
* A rough idea of how named tracers might look in the API.

* update to require at least a name for the tracer

* Introduce another layer of factory for the provider

* remove convenience tracer methods from the OpenTelemetry class.

* Update api/src/main/java/io/opentelemetry/trace/spi/TracerFactoryProvider.java

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

* Update api/src/main/java/io/opentelemetry/trace/TracerFactory.java

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

* Add clarifying javadoc, per PR review

* reverse who calls whom
2019-10-21 17:36:17 -07:00
Carlos Alberto Cortez a10e918e59 Move InMemorySpanExporter to exporters/ (#618) 2019-10-21 17:33:16 -07:00
Carlos Alberto Cortez 0ff6da3771
Add tests for TraceShim/TracerShim. (#603)
* Add tests for TraceShim/TracerShim.

Although we have the extensive testbed section,
we need some basic tests for non-exotic scenarios,
and this is part of that intention.
2019-10-18 03:54:07 +02:00
Bogdan Drutu 39a0664dbf
Move Probability sampler to Samplers. (#616)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-14 17:57:49 -07:00
Bogdan Drutu 9c60dc1a09
Move utils from API to SDK. (#613)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-14 17:45:33 -07:00
Bogdan Drutu 5133f0482d
Update README.md (#615) 2019-10-14 17:41:17 -07:00
Bogdan Drutu 4ffa516a6a
Move utils/Samplers from API to SDK Samplers (#614)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-14 15:34:51 -07:00
Bogdan Drutu a02b6d3927
Fix OpenTracingShim to run with SDK without baggages. (#608)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-14 08:44:57 -07:00
Bogdan Drutu 12ca38aa2f
Remove setRecordEvents option from the Span.Builder (#606)
* Remove setRecordEvents option from the Span.Builder

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

* Fix build, remove unnecessary overrides

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-12 11:32:54 -07:00
Bogdan Drutu a52617b14e
Move traceconfig proto helper out of SDK and remove protobuf dependency (#611)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-11 16:13:19 -07:00
Bogdan Drutu 6e278bb7c5
Restore gradle modules deleted when rebase (#610)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-11 16:09:57 -07:00
Bogdan Drutu 7c95af2a0e
Rename isRecordingEvents to isRecording (#607)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-11 16:09:28 -07:00
Bogdan Drutu 86f0ed3a21
Move TraceProtoUtils to otprotocol artifact. (#593)
* Move TraceProtoUtils to otprotocol artifact.

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

* Fix settings.gradle

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-11 13:23:12 -07:00