Bogdan Drutu
e187c18112
Consistent name for Trace/Span ids getters with the specification ( #2721 )
...
See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#retrieving-the-traceid-and-spanid
Not breaking change since methods were just renamed anyway.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:33:32 -08:00
Bogdan Drutu
51d176ffdf
Remove helper methods asBytes from Trace/Span Id ( #2726 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:31:10 -08:00
Bogdan Drutu
d6fea3a70a
Remove helper methods fromBytes from Trace/Span Id ( #2727 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:29:51 -08:00
Bogdan Drutu
7952823322
Mark AbstractWeakConcurrentMap as package protected, no usage ( #2731 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:19:28 -08:00
Bogdan Drutu
2c2f0b9280
Add a benchmark that test extract, create client span, inject ( #2720 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 14:43:25 -08:00
Bogdan Drutu
a18376a942
Make TraceFlags interface to allow agent to re-implement it ( #2716 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 10:56:47 -08:00
Bogdan Drutu
6c30f411f3
Change TraceFlags to be a class, expose all helpers of the class itself. ( #2709 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 09:06:19 -08:00
Bogdan Drutu
b42c27fe81
Better document exceptions that could happen when parsing Span/Trace ids ( #2714 )
...
* Better document exceptions that could happen
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update api/all/src/main/java/io/opentelemetry/api/trace/SpanId.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-02-05 08:26:15 -08:00
Anuraag Agrawal
faa8bf867a
Replace DefaultOpenTelemetry builder / class exposure with a factory … ( #2704 )
...
* Replace DefaultOpenTelemetry builder / class exposure with a factory for configuring propagation only.
* newp
* Cleanup
2021-02-05 13:13:12 +09:00
Bogdan Drutu
9bc7a71b20
Remove Memoized for byte arrays. Byte-arrays are not immutable ( #2712 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-04 14:22:06 -08:00
Bogdan Drutu
9d8af6f236
Cleanup javadoc in SpanContext ( #2711 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-04 14:20:01 -08:00
Anuraag Agrawal
6e89f11041
Return Tracer from DefaultTracer.getInstance ( #2705 )
...
* Return Tracer from DefaultTracer.getInstance
* Update api/all/src/main/java/io/opentelemetry/api/trace/DefaultTracer.java
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2021-02-04 08:07:05 -08:00
Bogdan Drutu
77d993d653
[BREAKING CHANGE] Cleanup TraceId/SpanId classes. Ensure consistency. ( #2696 )
...
Summary of changes:
* getHexLength renamed to getLength
* bytesFromHex/bytesToHex renamed to asBytes/fromBytes.
* bytesFromHex/bytesToHex renamed to asLongHigh/asLongLow
* Update javadoc.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-04 07:38:25 -08:00
Bogdan Drutu
0b250c1c91
Cleanup usages of TraceState and TraceFalgs ( #2697 )
...
* Avoid calling TraceState.builder().build() and replace it with TraceState.getDefault();
* Avoid storing TraceFalgs.getDefault() and TraceFalgs.getSampler() and use them directly;
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 18:39:52 -08:00
Bogdan Drutu
702e0ae409
Implement ImmutableKeyValuePairs to avoid unnecessary autovalue ( #2700 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 18:39:38 -08:00
Bogdan Drutu
88e760d01c
[BREAKING CHANGE] Remove AsHexString suffix from ids getters. ( #2684 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 10:40:43 -08:00
Bogdan Drutu
d71db8cbea
[BREAKING CHANGE] Rename getEntryMetadata to getMetadata ( #2688 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 09:23:48 -08:00
Bogdan Drutu
88bbdc86d1
Extract foreach implementation in the super class ( #2690 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 09:20:48 -08:00
Bogdan Drutu
009e1c8054
Mark sortAndFilter methods as protected, reduce public API ( #2689 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 09:12:50 -08:00
Bogdan Drutu
5cb09fbb73
Change Baggage.forEach to map other forEach methods, same generics asMap ( #2674 )
...
* Removes one custom interface and uses BiConsumer as all the other places.
* Builder no longer needs to create new objects from parent and can reshare them.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 08:51:52 -08:00
Bogdan Drutu
fb5f9e97c9
Fix consistency between implementation/test of fromContextOrNull ( #2649 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 08:32:52 -08:00
Bogdan Drutu
b5f2cbd7e4
Remove unused method, cleanup comments in TraceFlags ( #2680 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 08:25:42 -08:00
Bogdan Drutu
c3e7f34d41
[BREAKING CHANGE] Simplify bytesFromHex by removing offset, consistent isValid ( #2682 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 08:18:31 -08:00
Bogdan Drutu
d83c29f871
[BREAKING CHANGE] Remove bytes size from TraceId/SpanId ( #2685 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 07:41:55 -08:00
Anuraag Agrawal
9cec2ca237
Downcast to reduce allocations when copying Baggage ( #2683 )
2021-02-03 18:26:40 +09:00
Bogdan Drutu
06da79c6ee
Fix more comments in TraceId/SpanId ( #2681 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 18:34:10 -08:00
Bogdan Drutu
3e6a5db360
Use consistent name for private classes in the baggage package ( #2676 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 14:31:06 -08:00
Bogdan Drutu
36adb5225c
Restructure API in trace/span id classes, no changes just move code around ( #2672 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 14:12:05 -08:00
Bogdan Drutu
2387287f31
Mark BaggageEntry and BaggageEntryMetadata as immutable, otherwise it is hard to make Baggage immutable ( #2675 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 13:54:21 -08:00
Bogdan Drutu
19c002471e
Move Span.Kind to the upper level as SpanKind ( #2646 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 12:27:54 -08:00
Bogdan Drutu
301a29d7a3
Move labels outside of the stable package ( #2647 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 10:24:06 -08:00
Bogdan Drutu
3cc2110c42
Remove unused public method in TraceId ( #2667 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 09:43:55 -08:00
Anuraag Agrawal
bb14c9aaf4
Have w3ctracecontextpropagator actually implement textmappropagator. ( #2661 )
2021-02-02 09:19:52 -08:00
Bogdan Drutu
439c7c5c79
Remove metrics specific helpers from internal.StringUtils ( #2663 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 08:21:36 -08:00
Bogdan Drutu
764d93ad11
Fix small nits in tests ( #2665 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 20:39:16 -08:00
Bogdan Drutu
f9fb393995
Remove unnecessary private method in ImmutableKeyValuePairs ( #2650 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 12:53:29 -08:00
Bogdan Drutu
26e5df2f66
Remove unnecessary class ( #2648 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 12:34:44 -08:00
Anuraag Agrawal
6eee5ba4ae
Update dependencies ( #2618 )
...
* Update dependencies
* Inline annotations
* Revert "Inline annotations"
This reverts commit 8facc4ddbe .
* Unmodifiable
2021-02-01 12:21:00 +09:00
Anuraag Agrawal
1a56b8b0d8
Migrate api / sdk projects to build.gradle.kts ( #2609 )
2021-01-29 10:10:40 -08:00
Anuraag Agrawal
32a63fb8e3
Migrate to using gradle platform to manage dependency versions instea… ( #2586 )
...
* Migrate to using gradle platform to manage dependency versions instead of global variables.
* Remove unused and fix test
* Revert test yolo
* Workaround test ordering issue by just merging them
* Spot
2021-01-27 13:54:58 +09:00
Anuraag Agrawal
b4218426ee
Prevent setting global OpenTelemetry twice. ( #2548 )
...
* Prevent setting global OpenTelemetry twice.
* Unneessary volatile
* Separate testing class
* Cleanup
* Delete
* Update api/all/src/main/java/io/opentelemetry/api/GlobalOpenTelemetry.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-21 13:55:46 +09:00
Bogdan Drutu
f2974becec
Remove unused package-info files from removed packages ( #2558 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-19 14:26:43 -08:00
Anuraag Agrawal
adbed0c0fd
Remove remaining 0.14.0 deprecated stuff. ( #2544 )
2021-01-19 09:21:44 -08:00
Anuraag Agrawal
6dc33fe634
Register global in autoconfigure ( #2552 )
...
* Register global in autoconfigure
* Spot
2021-01-19 08:21:48 -08:00
Anuraag Agrawal
6bee59e912
Remove OpenTelemetry SPI ( #2504 )
2021-01-14 11:35:41 +09:00
Bogdan Drutu
53f0e30776
Extract inner classes from metrics API ( #2517 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-13 15:26:21 -08:00
Anuraag Agrawal
9b85dfa3d4
Add test-sets tests to check which was forgotten. ( #2501 )
2021-01-13 13:27:49 +09:00
Anuraag Agrawal
75e01110e4
Deprecate OpenTelemetry SPI. ( #2453 )
2021-01-08 13:37:44 +09:00
Anuraag Agrawal
e749f2b262
Add autoconfiguration wrapper artifact ( #2401 )
...
* Add autoconfiguration wrapper artifact
* WIP
* WIP
* WIP
* WIP
* WIP
* Mostly done
* Propagator classpath
* Finish
* Cleanup
* Cleanup
* Not visible
* Update sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/ConfigProperties.java
Co-authored-by: John Watson <jkwatson@gmail.com>
* More merge
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-07 12:02:09 +09:00
John Watson
015708b7a7
Move the semantic conventions generated code into its own module ( #2423 )
...
* Move the semantic conventions generated code into its own module
* remove un-needed dependencies
* move the semconv module to the top level, out of the API namespace
* Update README.md
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* move SemanticAttributes to a more appropriate package and deprecate the old ones in the api package.
* Apply suggestions from code review
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-06 08:25:17 -08:00