Commit Graph

395 Commits

Author SHA1 Message Date
Bogdan Drutu fcd627d717
Rename observers, cleanup comments (#1215)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-13 11:43:07 -07:00
Bogdan Drutu e67fe84c60
Add API for UpDownCounter (#1210)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-13 10:00:09 -07:00
Bogdan Drutu 5b625d2e1f
Avoid unnecessary public classes. (#1211)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-13 08:20:32 -07:00
Bogdan Drutu 5b31c5ae0c
Remove monotonic property from counters (#1208)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-12 16:43:47 -07:00
Bogdan Drutu 5dff1b9165
Remove unnecessary throws statements (#1205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-12 10:54:16 -07:00
Bogdan Drutu 7aec1aee71
More minor cleanups in the code (#1204)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-12 10:00:51 -07:00
Bogdan Drutu 4d2f6cc91d
Cleanup names in metrics and ensure consistency with specs (#1202)
* Cleanup names in metrics and ensure consistency with specs

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

* Rename SyncInstrument to SynchronousInstrument

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

* Update api/src/main/java/io/opentelemetry/metrics/SynchronousInstrument.java

Co-authored-by: John Watson <jkwatson@gmail.com>

Co-authored-by: John Watson <jkwatson@gmail.com>
2020-05-12 09:50:02 -07:00
Bogdan Drutu bcacf39a9c
Apply intelij inspect suggestions for Java code (#1196)
* Apply intelij inspect suggestions for Java code

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

* Fix comments.
2020-05-11 16:54:39 -07:00
Giovanni Liva cd041c9d30
Fix getTracerLower behavior (#1193)
* Fix getTracerLower behavior

* Add test for negative trace representation
2020-05-11 11:21:14 -07:00
Gregor Zeitlinger ebcd508a88
add shortcut methods to get tracers and meters (#1159)
* add shortcut methods to get tracers and meters

* add shortcut methods to get tracers and meters

* add shortcut methods to get tracers and meters

* add shortcut methods to get tracers and meters
2020-05-06 11:30:33 -07:00
Armin Ruech 19d7e03572
Fix typo in OpenTelemetry.getTracerProvider (#1179) 2020-05-06 08:48:41 -07:00
Trask Stalnaker 79d664fc10
Prevent casting to TraceProviderSdk (#1152)
* Prevent casting to TraceProviderSdk

* Fix javadoc

* Parameterize Obfuscated interface
2020-05-01 12:12:12 -07:00
Uladzislau Kiva 5aa00c57c3
Iterations benchmark (#1151)
* test: use iterations in benchmarks

* test: use iterations in benchmarks

* docs: added javadoc
2020-04-28 11:33:45 -07:00
Giovanni Liva 4bcfdb703f
Array values for span attributes (#807)
* [API] - Add Arrays for span attributes

* [SDK] - Add Arrays for span attributes

* [Exporters/Shim] - Add Arrays for span attributes

* add tests

* Adjust jaeger exporter to specification. Add tests.

* Fix checkstyle naming issue

* Add further tests.

* Align null value behavior of attributes with spec

* fix javadoc @since

* API must not crash on misusage of AttributeValue

* API - Remove Attribute ArrayValues from Span surface

* Immutable String array values for AttributeValue

* Immutable values for AttributeValue arrays

* ./gradlew goJF

* Implement ArrayAttribute

* Rebase and add tests

* Adapt RecordEventsReadableSpan
2020-04-21 11:08:24 -07:00
Bogdan Drutu 6a4fd2d46a
Remove labels keys from instruments (#1121)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-20 09:24:45 -07:00
Carlos Alberto Cortez 36661f1a06
Update the Jaeger benchmarks code. (#1118) 2020-04-15 18:40:43 -07:00
jarebudev a19b0075fb
Add jaeger propagator benchmarks (#1108) 2020-04-16 00:55:27 +02:00
Bogdan Drutu e11344c235
Fix HttpTraceContext propagator (#1102)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-04-11 16:31:01 -07:00
Carlos Alberto Cortez 68bac8f431
Move B3/Jaeger propagators to their own contrib artifact (#1098) 2020-04-10 18:03:09 +02:00
John Watson 73858ccf7b
Let the carrier be null on the inject methods, to support possible lambda usages (#1088) 2020-04-09 22:23:26 +02:00
John Watson 8b0fcfbc99
simple benchmarks for the default tracer APIs (#1090)
* simple benchmarks for the default tracer APIs
* do some painful gyrations to make the animalsniffer happy
2020-04-08 14:05:10 -07:00
John Watson 7d4576e7f7
Use a reentrant lock as the mutex for initializing/reading the global instance (#1071) 2020-04-03 21:59:49 +02:00
John Watson 5ceff22cc6
fix a typo in the SemanticAttributes (#1078) 2020-04-03 20:34:49 +02:00
jarebudev b14a2dd87d
added jaeger propagator and tests (#1046)
* added jaeger propogator and test

* address PR comments about logging and static var names

* added jaeger client for testing jaeger propagator

* added comment to explain why UTF-8 decoding is needed
2020-04-02 08:27:36 -07:00
Bogdan Drutu 1f97c4bce0
Small fixes for #758 (#1057)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-03-30 21:33:19 -07:00
Kevin Brockhoff 46ee284b0a
Define constants for semantic convention attribute names (#758)
* Initial def of string constants for semantic convention span attribute names

* Change to recommended name and update to latest specifications

* Changed constants to objects which enabled typed setting of span attributes

* Sync Javadoc with specifications document.

* Update to latest factory name

* Renaming to make usage clearer

* API improvements and cleanup based on PR comments

* Removed methods required by code reviews

* Made setter classes final
2020-03-30 15:41:17 -07:00
Carlos Alberto Cortez 690651b65a
Context propagation update (OTEP 66) (#720)
* Initial Propagators refactor.

* Add tests for the new propagators changes.

* Make the SDK compile/pass.

* Make the OT shim compile/pass.

* Make contrib components compile/pass.

* Improvement over Span/SpanContext handling in Context.

* Add Span.setParent(Context) overload.

* Do not provide default values for Span/SpanContext keys in Context.

* Improve the Context's active state handling.

* Rename DistributedContext to CorrelationContext.

* Improve names for correlationcontext's ContextUtils methods.

* Don't provide an automatic default for current CorrelationContext.

* Improve the client-server example after the recent changes.

* Adds CorrelationContext.Builder.setParent(Context) overload.

* s/be/become.

* Fix javadoc.

* No need to use diamond.

* Simply import withScopedContext().

* Fix the API/SDK build.

* Remove the builder from the Propagators interface.

* Fix name.

* Use Collections.emptyList() directly.

* Rename Propagators to ContextPropagators.

* Move context/ members in api/ to context_prop/

* Add check/tests for null scoped Contexts.

* Rename ContextUtils classes to better alternatives.

* Update the context* util classes.

* Make the code compile after the latest master merge.

* Cache the fields() in our default composite propagator.

* Remove the overloads of setParent(Context) for now.

* Use DefaultSpan for the tests instead of calling getTracerProvider()

* Fix the sdk testbed artifact build.

* Make the B3 propagator comply with the new propagator API.

* Simplify the HttpTraceContextTest tests.

* Simplify the ContextUtils* classes handling of default values.

* Minor nit.

* Update api/src/main/java/io/opentelemetry/OpenTelemetry.java

Co-Authored-By: Giovanni Liva <giovanni.liva@dynatrace.com>

* Annotate ContextPropagators with ThreadSafe instead of Immutable.

* Do not use the fully qualified ContextUtils identifier.

* Remove SpanContext support from TracingContextUtils.

* Rever to using non-defaulted key for TracingContextUtils.

* Revert the default keys for CorrelationsContextUtils.

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
2020-03-20 13:38:05 -07:00
John Watson 8453bcb14a
Remove LabelSet from the API altogether. (#1023)
* remove LabelSet from the API surface altogether

* rename bindInternal to bind
2020-03-16 16:07:18 -07:00
John Watson 29297249ab
remove LabelSet from the Instrument binding API (#1010) 2020-03-16 13:38:10 -07:00
John Watson e248ea7ad7
Remove LabelSet from Observer API (#1008)
* Remove the LabelSet parameter on the DoubleCounter non-bound usage.

* remove LabelSet from the Observer API
2020-03-13 09:33:34 -07:00
John Watson 4d2a9f2bde
remove LabelSet from the BatchRecorder API. (#1006)
also removes a few more usages of the LabelSet interface.
2020-03-13 08:41:04 -07:00
Carlos Alberto Cortez 0ec6cca453
Rename the Context methods returning Scope as withCurrentContextWith() (#976) 2020-03-12 12:55:15 -07:00
John Watson efc49522ac
Remove LabelSet from non-bound instrument usage (#1001)
* Remove the LabelSet parameter on the DoubleCounter non-bound usage.

* remove non-bound labelset measure recording method

* remove non-bound labelset LongMeasure recording method

* remove non-bound labelset LongCounter recording method

* tidy up an access level
2020-03-12 12:54:43 -07:00
Mike Goldsmith 577bab0032
move AttributeValue to common package (#1005) 2020-03-12 12:54:00 -07:00
Mike Goldsmith 438ea8d24a
Add B3 propagator (#979) 2020-03-12 16:53:24 +01:00
Bogdan Drutu 2080fe196c
Remove generic usage in the metrics API (#956)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-03-09 14:31:55 -07:00
Carlos Alberto Cortez 1d913cb639
Initial relocation of ContextUtils classes. (#904)
* Initial relocation of ContextUtils classes.

Now they will live within the child `propagation` package,
with a prefix based on their cross-cutting concern, to be
referenced easily.
2020-03-08 18:34:46 +01:00
John Watson 6ca3d1deaf
Add missing thread safety & immutable annotations in the API. (#972) 2020-03-06 20:02:09 +01:00
Bogdan Drutu 01189f34c9
Add private ctor for singleton classes. (#957)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-03-04 11:53:59 -08:00
Bogdan Drutu a395039e4f
Add default service provider for CorrelationContextManager. (#960)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-03-04 10:38:31 -08:00
Carlos Alberto Cortez 26a4070d90
Remove Binary format and related members. (#891) 2020-03-03 08:47:41 -05:00
Uladzislau Kiva 43b59451ab
refactor: name method's according to return value and https://github.com/open-telemetry/opentelemetry-java/blob/master/QUICKSTART.md#tracing (#953) 2020-02-29 08:28:26 -08:00
Bogdan Drutu 1f202a95ea
Cleanup jmh and trace context benchmarks (#920)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 13:56:58 -08:00
Bogdan Drutu 8c9f928340
Remove the exclusion of TestExceptionRefactoring from errorprone config. (#919)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 11:36:35 -08:00
Bogdan Drutu 30e3bc8c63
Fix build after race condition between PRs merge (#917)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 11:31:00 -08:00
John Watson f37f5dc8ac
Make the HttpTraceContext be more forgiving in the face of invalid data. (#899) 2020-02-24 18:38:46 +01:00
Uladzislau Kiva 1c7da07432
feat: make invalid span context public (#896) 2020-02-20 22:05:59 +01:00
Giovanni Liva b0d42dd4cc
Rename TracerRegistry -> Tracer Provider (#879)
* Rename TracerRegistry -> Tracer Provider

* Add comment to address the provider name

* gradlew goJF
2020-02-20 07:26:13 -08:00
Giovanni Liva 7d51abc5f9
Move metric check for name length (#893) 2020-02-20 07:24:06 -08:00
Carlos Alberto Cortez f4dea297be
Use Collections.emptyList() directly. (#892) 2020-02-19 21:27:23 -08:00
Bogdan Drutu 9e1882f06a
Fix errorprone errors and re-enable errorprone for jmh (#887)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-19 10:57:16 -08:00
Giovanni Liva edbee8a19c
align valid metric names with spec (#877) 2020-02-19 08:11:02 -08:00
Uladzislau Kiva 1fced4898f
Http trace context benchmark (#815)
* test: add benchmarks for http trace context extract and inject

* test: add benchmarks for http trace context extract and inject

* docs: add docs

* style: apply google code style

* style: format jmh.gradle, use not deprecated archiveFileName

* test: add params for trace id and span id

* fix: fix merge conflicts

* feat: use HashMap move params to inner state

* feat: use same measurement params

* fix: apply google code style

* fix: extract span creation for more clear benchmark

* test: use vector of traceparents, increase iterations to 50k

* style: apply google code style

* feat: use vector of traceparents in inject benchmark
2020-02-18 14:36:06 -08:00
Giovanni Liva 9ae05f77b0
Rename MeterRegistry -> MeterProvider (#870)
* Rename MeterRegistry -> MeterProvider

* Remove extra code for independent PR

* Address review comments
2020-02-18 10:36:19 -08:00
John Watson 1e7239e74c
add the missing enclosing interface (#854) 2020-02-13 08:58:40 -08:00
John Watson 96cd311b87
Add a labelset to the creation of the batch recorder (#844)
* add a labelset to the creation of the batch recorder.

* add a tiny additional comment on the javadoc
2020-02-12 09:19:57 -08:00
John Watson 0014fff95b
Add counters to the batch recorder. (#838)
* Add counters to the batch recorder.
Also, allow non-monotonic batch recordings.

* remove the throws on the javadoc

* put the proper since tags on the new methods

* remove an import that seems only necessary for IDEA

* formatting
2020-02-11 06:27:32 -08:00
Bogdan Drutu e7be01474a
Move unbind to the Bound to simplify usage (#834)
* Move unbind to the Bound to simplify usage

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

* Change names to be English friendly

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-07 12:57:39 -08:00
Bogdan Drutu 2dd7612477
Remove guage from the API. (#830)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-07 07:20:41 -08:00
Giovanni Liva 54b5b2eff1
Fix API doc (#825) 2020-02-06 10:50:02 -08:00
Bogdan Drutu 7365426d85
Add @ThreadSafe annotation to Bounds (#820)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-04 19:24:03 -08:00
Bogdan Drutu c2843a1c6d
Rename MeasureBatchRecorded to BatchRecorder (#817)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-04 16:13:56 -08:00
Bogdan Drutu c19174ee53
Rename Tracestate to TraceState (#816)
* Rename Tracestate to TraceState

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

* More renames

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-04 15:34:19 -08:00
Armin Ruech 5485e18280
Remove incorrect `@throws NullPointerException` in AttributeValue (#808) 2020-01-30 09:59:28 -08:00
Uladzislau Kiva 8b4c1488e9
Solves #767 HttpTraceContext should not throw exceptions for non-fatal cases (#782)
* fix: HttpTraceContext::extract() fails on traceparent == null (#767)

* fix: HttpTraceContext::extract() fails on traceparent == null (#767)

* fix: HttpTraceContext::extract() fails on traceparent == null (#767)

* docs: add an

* refactor: use invalid span context from HttpTraceContext

* style: apply google code style

Co-authored-by: Uladzislau Kiva <vladislav.kiva@moneyman.ru>
2020-01-29 13:38:23 -08:00
Armin Ruech db31f4a796
Rename StringUtils.isNullOrBlank to isNullOrEmpty (#806) 2020-01-29 10:29:11 -08:00
Bogdan Drutu d4cf312671
Rename spi providers to match {}Provider name (#800)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-01-28 10:23:40 -08:00
Bogdan Drutu 01aece01a1
Remove bound support from Observers (#799)
* Remove bound support from Observers

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

* fix copyright

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

* Rename observer result method from put to observe

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

* Rename InstrumentWithBound to InstrumentWithBinding

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-01-27 10:21:44 -08:00
Bogdan Drutu bd4f3737d4
Add a new artifact context propagation (#754)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-01-21 08:49:34 -08:00
Armin Ruech a7730e4edf Fix usage of context.Scope (#779) 2020-01-21 08:38:44 -08:00
Giovanni Liva 61b50a6d2e Add Measure metrics (#772)
* Add Long and Double Measure

* Add builders to MeterSdk

* Fix * import. Address feedback of @jkwatson

* Rename TestBound->TestBoundMeasure
2020-01-17 15:13:37 -08:00
John Watson 42bff3e922 Ignore null or blank string-valued span attributes. (#771)
* Ignore null or blank string-valued span attributes.

* also ignore null & blank strings on active span attributes.

* change to ignore at the AttributeValue level, rather than above
2020-01-17 15:10:15 -08:00
Tyler Benson 7b601b1ad0 Rename Setter.put to Setter.set (#769)
Improving consistency and cohesion of naming.
2020-01-17 13:54:07 -08:00
Carlos Alberto Cortez 5dfe74e18d Rename DistributedContext to CorrelationContext (#757)
* Rename DistributedContext to CorrelationContext in the API/SDK.

* Update the OT shim.

* Fix build.
2020-01-15 13:40:12 -08:00
John Watson f6a27c7eee Change LabelSet creation to use varargs, rather than overloaded k/v methods. (#745)
* switch to varargs

* update the sdk to handle the varargs option

* format

* rename a variable to make more sense

* add back a test with 2 key/value pairs

* replace the emptyLabelSet method with the empty varargs call
2020-01-14 10:57:40 -08:00
John Watson 1ff2c2a3fb Create a labelset with an arbitrary number of key/value pairs (#740)
* add a method to create a labelset with an arbitrary number of labels.

* add notnull annotations

* rebase for SDK implementation

* remove Nonnull annotations
2020-01-10 09:58:00 -08:00
John Watson cd40a37156 remove some more usages of the bare word "bound" (#739) 2020-01-08 13:57:20 -08:00
John Watson eacd073205 convert the SpanContext to use Autovalue (#708)
* convert the SpanContext to be autovalued

* remove the builder for the span context and the custom equals/hashcode implementation

* format
2020-01-08 13:38:15 -08:00
John Watson 91053c45c8 rename the factories to registries (#725) 2020-01-06 20:11:02 -05:00
John Watson 47ed1b1808 more renaming of Metric to Instrument (#722) 2019-12-27 12:45:00 -08:00
John Watson 23cc506d26 Rename Metric to Instrument (#717)
* rename the Metric interface to Instrument, and update many javadocs to match

* apply formatting
2019-12-25 07:26:00 -08:00
John Watson fc9a9575c8 Add non bound usage to the various metric instruments API (#715)
* WIP on non-bound instrument usages

* Add API methods for non-bound-instrument usages

* add missing javadoc

* add some additional javadoc
2019-12-19 16:28:03 -08:00
John Watson a8d14d8886 provide an API method to return an empty LabelSet (#716)
* provide an API method for an empty LabelSet

* remove the TestLabelSet now that we have a way to create an empty one
2019-12-18 14:04:55 -08:00
John Watson 95da446cee rename metric instances to have the numeric type before the metric type (#712) 2019-12-18 11:38:24 -08:00
John Watson bc627e67cf Remove default bound (#707)
* remove the getDefaultBound methods

* provide a TestLabelSet for testing
2019-12-18 10:18:52 -08:00
John Watson 7505c1297f rename getBound/removeBound to bind/unbind (#704) 2019-12-16 16:06:22 -08:00
Bogdan Drutu f1e6fc6ef0
Simply rename metrics Handle to Bound. (#698)
* Simply rename metrics Handle to Bound.

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

* More renames in tests

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

* Rename Bound to Bound[ValueType][MetricType]

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

* Fix bound param comment

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-12-16 15:06:20 -08:00
Christian Neumüller 9afb1e4059 Javadoc: Tracer is not simple (#687) 2019-12-06 18:56:53 -06:00
Carlos Alberto Cortez 74c6595e67
Allow recording attributes in Span.Builder (#685)
* Initial support for attributes set in Span.Builder.
2019-12-05 12:49:17 -06:00
Bogdan Drutu 7ab95be319
Add LabelSet to the Meter API and change GetHandle to use it. (#681)
* Add LabelSet to the Meter API and change GetHandle to use it.

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

* Add clarification in LabelSet javadoc

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

* Update api/src/main/java/io/opentelemetry/metrics/DefaultMeter.java

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

* Update api/src/main/java/io/opentelemetry/metrics/DefaultMeter.java

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

* Update api/src/main/java/io/opentelemetry/metrics/DefaultMeter.java

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

* Update api/src/main/java/io/opentelemetry/metrics/DefaultMeter.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
2019-11-27 12:53:29 -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
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
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 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
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