Anuraag Agrawal
17fa4e9c97
Only apply java-library to projects and configure reactively. ( #2319 )
...
* Use java-library
* Only apply java-library to projects and configure reactively.
* Consistency
* Cleanup
2020-12-17 09:11:44 +09:00
Anuraag Agrawal
7c0b452097
Move SdkTracerProviderBuilder and OpenTelemetrySdkBuilder to top-level. ( #2318 )
2020-12-16 10:56:49 -08:00
Anuraag Agrawal
8a369e3695
Make public src/main classes final where possible. ( #2309 )
...
* Make public src/main classes final where possible.
* methods
* Spot
2020-12-16 13:13:04 +09:00
Bogdan Drutu
dbb1ae91f9
Deprecate metrics from opentelemetry-api, add a global version in metrics api ( #2279 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-15 15:14:50 -08:00
Bogdan Drutu
25bf879df7
Split global functionality into a separate class ( #2233 )
...
This ensure clear separation of functionality. This PR does not change any functionality, it just restructures the code to separate global functionality from
the Default implementation. Also helps to ensure that Global initialization does not happen by mistake when working only with the default implementation.
Also it helps with methods like `OpenTelemetry.get()` and `OpenTelemetry.set()` to understand they are interacting with global instance
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-15 10:27:35 -08:00
Anuraag Agrawal
3701a8bdf6
Move DaemonThreadFactory to internal package. ( #2288 )
2020-12-14 21:06:00 -08:00
Anuraag Agrawal
262dd7a866
Use key as AttributeKey.toString ( #2175 )
...
* Use key as AttributeKey.toString
* Fix / more tests
* Add toString test for SpanWrapper
* Quote string values
* Fix
2020-12-15 12:49:45 +09:00
Anuraag Agrawal
7ff20f6db6
Move Sampler builder to top level ( #2291 )
...
* Move Sampler builder to top level
* Hide implementation class
* Ordering
2020-12-15 10:16:08 +09:00
Anuraag Agrawal
91dc119181
Move Sdk to be prefix of implementation classes instead of suffix/midfix. ( #2292 )
2020-12-14 11:59:28 -08:00
Anuraag Agrawal
f626cb9705
Move export processor builders to top level. ( #2286 )
2020-12-14 11:38:03 -08:00
Bogdan Drutu
ca1f31dfb5
Use standard Java interfaces instead of defining custom ones ( #2261 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-10 09:16:24 -08:00
Bogdan Drutu
396fa44601
Change ComponentRegistry to be a final class that accepts a factory method ( #2256 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-09 20:26:06 -08:00
Anuraag Agrawal
56235a1114
Move TraceConfig.Builder to the top level ( #2241 )
...
* Move TraceConfig.Builder to the top level
* Remove builder
2020-12-09 19:54:07 -08:00
Anuraag Agrawal
f199e133fa
Implement more Span default methods. ( #2242 )
...
* Implement more Span default methods.
* A bit more
2020-12-09 13:08:52 -08:00
John Watson
a511af4b85
Add a section to the TracerSdkManagement.shutdown javadoc to make it clear it is a terminal operation. ( #2229 )
2020-12-08 12:54:05 -08:00
Anuraag Agrawal
e4e3dfbdb0
Rename Link.getContext -> Link.getSpanContext ( #2224 )
2020-12-08 10:43:26 -08:00
Bogdan Drutu
5732395b83
Mark as package protected deprecated Multi classes in SDK ( #2217 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 18:16:57 -08:00
Bogdan Drutu
69208f8f79
Remove version of checkArgument not used ( #2213 )
...
This PR fixes an inconsistency that MaxLengthOfAttributeValues was allowed to be set to 0, then thrown internal exception.
We should check for arguments only at public APIs.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 13:39:33 -08:00
John Watson
c03efbcc13
Add an option to the SDK builder to specify an initial TraceConfig ( #2192 )
...
* Add an option to set the initial TraceConfig when building an SDK, and a TracerSdkProvider.
* add the missing javadoc
2020-12-04 14:12:48 +09:00
Anuraag Agrawal
4762c6a25d
Remove ReadableAttributes ( #2187 )
...
* Remove ReadableAttributes
* Don't rewrite history
* Drift
2020-12-03 11:26:24 -08:00
John Watson
d7ab0addfa
Add an option to set an IdGenerator when building an SDK. ( #2185 )
...
rename a few lingering pluralized idGenerator symbols.
2020-12-03 09:18:05 +09:00
Armin Ruech
5585e73611
Remove "semver" prefix from instrumentation library version ( #2180 )
2020-12-02 10:29:11 -08:00
Anuraag Agrawal
cf5b582c5b
Replace AttributeConsumer with BiConsumer ( #2174 )
...
* Replace AttributeConsumer with BiConsumer
* Forgot to delete
2020-12-02 16:52:06 +09:00
Anuraag Agrawal
18355e9683
Remove Guava dependencies from SDK ( #2148 )
...
* Remove Guava from SDK
* Clean
2020-12-01 11:10:38 -08:00
Anuraag Agrawal
ca3714053f
Replace SpanData.hasRemoteParent/getParentSpanId with getParentSpanContext ( #2146 )
...
* Remove SpanData.hasRemoteParent
* Replace parentSpanId with parentSpanContext
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
* Keep parentId
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-01 09:50:11 -08:00
Anuraag Agrawal
052b17f9b1
Add asMap for Attributes. ( #2145 )
...
* Add asMap for Attributes.
* AttributesMap too
* Test empty too.
* checkstyle
2020-12-01 13:27:14 +09:00
Anuraag Agrawal
09d371ba09
Enable tooling for mrjar and use it to get epoch time in best way for Java 8 or 9+. ( #2154 )
2020-12-01 09:30:05 +09:00
John Watson
73bad773dd
Move the AsynchronousInstrument callbacks to the builders. ( #2120 )
...
Deprecate the existing setCallback method.
Update the code in the SDK to use the new API.
2020-11-30 14:12:49 -08:00
Vladimir Šor
ee0dac1a97
Add getKind to the ReadableSpan interface in SDK. ( #2162 )
2020-11-30 09:48:02 -08:00
John Watson
4897f4c320
rename tracing to trace for the module ( #2112 )
2020-11-23 10:14:33 -08:00