Anuraag Agrawal
ce9c8854c7
Extract publishing and animalsniffer plugins. ( #3334 )
2021-06-22 08:23:16 +09:00
Anuraag Agrawal
864508983e
Extract JMH conventions plugin. ( #3324 )
2021-06-17 08:37:49 -07:00
Anuraag Agrawal
7f544416e4
Define an extension for otel-specific configuration of Java. ( #3317 )
2021-06-17 15:54:25 +09:00
Anuraag Agrawal
b9ca09b6c1
Extract java conventions plugin. ( #3316 )
2021-06-15 12:29:47 -07:00
John Watson
ca92a9ab03
Introduce usage of the OpenTelemetry schema with a Tracer/MeterBuilder ( #3309 )
...
* Add the OpenTelemetry schema URL to the InstrumentationLibraryInfo and the corresponding API calls.
* small refactoring and doc tweaks from feedback
* make the instrumentation version nullable on the method that takes a schema
* update the apidiffs
* add since tags and a few more missing nullable annotations
* Switch to using a Builder rather than method overloads.
2021-06-11 20:50:23 -07:00
Anuraag Agrawal
d6849219a7
Use constant for baggage validation bitsets ( #3274 )
...
* Use constant for baggage validation bitsets
* Spot
* Move to element
* private
2021-06-03 17:26:00 -07:00
Anuraag Agrawal
d044890a7c
Don't create Supplier when decoding byte ( #3273 )
2021-06-04 08:31:40 +09:00
Nikita Salnikov-Tarnovski
ff85102a46
Remove unnecessary string allocation on hot path ( #3272 )
2021-06-03 08:57:16 +09:00
Valeriy
34494e609b
javadocs: fix code examples ( #3269 )
...
Problem:
Javadocs comments at Tracer interface contains call of unexistent method OpenTelemetry.getTracer()
Solution:
Replace OpenTelemetry.getTracer() with openTelemetry.getTracer(String, String) in examples at javadocs
2021-06-01 12:58:59 -07:00
Anuraag Agrawal
1bfc7871bd
Add doc for AttributesBuider accident. ( #3265 )
2021-05-30 08:22:12 -07:00
Anuraag Agrawal
cb77a8d364
Move TemporaryBuffers to internal and use it everywhere. ( #3226 )
...
* Move TemporaryBuffers to internal and use it everywhere.
* blurb
2021-05-13 11:18:50 +09:00
Anuraag Agrawal
672330bf51
Upgrade to Gradle 7.0 ( #3228 )
2021-05-13 08:21:22 +09:00
Jakub Wach
ad6ceccc4c
baggage parsing improvements ( #3180 )
...
* baggage parsing improvements
* added JMH benchmark for W3C baggage propagator
* clean-up
* removed old implementation code
* post-review changes
2021-05-12 09:41:21 -07:00
Anuraag Agrawal
77f0b0adc4
Allow enabling nullaway and fix some nullness issues ( #3218 )
...
* Add support for enabling nullaway and fix a couple of projects.
* Finish
* Finish
* Cleanup
2021-05-12 08:43:32 +09:00
John Watson
a8a85c6129
Add tests and update behavior to verify propagators do not alter the … ( #3194 )
...
* Add tests and update behavior to verify propagators do not alter the context when failing to parse inputs.
* Ad a couple tests around null contexts
* formatting
2021-05-07 08:58:42 +09:00
John Watson
f396965196
Add @since tags for new public methods. ( #3209 )
...
* Add @since tags for new public methods.
* remove errant since tags
2021-05-07 08:26:55 +09:00
Anuraag Agrawal
d4b63fbbb6
Coerce null AttributeKey to empty string ( #3186 )
2021-04-30 10:31:34 +09:00
HaloFour
7d31cddf19
Add Span#setAllAttributes method to add Attributes to a Span ( #2799 )
2021-04-27 14:41:26 -07:00
James Gan
f5f0e1f63f
Improve key validity code documentation for trace state ( #3142 )
...
* Improve key validity documentation for trace state
* Address code style issues
Addressed line length, indentation
* spotlessapply to fix indent of javadoc param comment
2021-04-08 10:40:34 -07:00
Anuraag Agrawal
531abc0d24
Fix more tracestate testsuite cases. ( #3120 )
2021-04-06 15:54:57 -07:00
Anuraag Agrawal
d110a6075c
Don't crash on empty tracestate value ( #3104 )
2021-04-05 08:13:39 -07:00
Jakub Wach
71ad8ff646
X-Ray traceid extraction - 64bit support ( #3087 )
...
* X-Ray traceid extraction - 64bit support
* perf improvement - separate methods depending on traceid length
* code review
* code review - scare-comment for internal util
* added new unit tests
* Update api/all/src/main/java/io/opentelemetry/api/internal/StringUtils.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-04-02 17:52:07 +09:00
John Watson
14fd81a8b9
Rename GlobalMetricsProvider to GlobalMeterProvider ( #3048 )
2021-03-29 08:09:24 -07:00
Anuraag Agrawal
761c8510d0
Better PropagatedSpan.toString ( #3055 )
2021-03-26 13:56:30 +09:00
John Watson
e7cc57d911
Add a note to the TracerProvider javadoc about instrumentation name. ( #3050 )
2021-03-23 11:40:53 +09:00
Anuraag Agrawal
f113c03483
Ignore null / invalid spancontext and handle null attributes for links. ( #2985 )
...
* Ignore null / invalid spancontext and handle null attributes for links.
* Cleanup
* Fix
2021-03-07 09:03:33 -08:00
Anuraag Agrawal
f553aa0a6b
Add an internal GuardedBy annotation to enable our own error prone ch… ( #2978 )
...
* Add an internal GuardedBy annotation to enable our own error prone checker without affecting downstream.
* Method
2021-03-05 11:37:24 +09:00
John Watson
1883b5919a
Make the ReadOnlyArrayMap extend AbstractMap for equals/hashcode implementation ( #2963 )
...
* Make the ReadOnlyArrayMap extend AbstractMap for equals/hashcode implementation
* formatting
* use guava's EqualsTester to save a few lines
* remove redundant hashcode verifications
* add an empty map to the equals test
2021-03-03 14:05:18 -08:00
Anuraag Agrawal
f967b0a95b
Move api/context to context. ( #2959 )
...
* Move api/context to context.
* git commit
2021-03-02 10:44:27 -08:00
Bogdan Drutu
17fb50cd31
Remove usage of not well defined fromHex in w3c context ( #2947 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-26 15:49:42 -08:00
Bogdan Drutu
b29a7123ce
Small nit fix in propagation TemporaryBuffers ( #2946 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-26 14:27:59 -08:00
John Watson
6dd3eac097
Remove the documentation about explicit exceptions thrown when TraceFlags are invalid. ( #2945 )
2021-02-26 09:58:48 -08:00
John Watson
1102efae1d
Update the docs on the TextMapPropagator to be closer to the specification. ( #2931 )
2021-02-24 13:06:57 -08:00
Bogdan Drutu
bf5fa57df5
Move c-like comment to javadoc in TextMapPropagator ( #2930 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-24 12:19:03 -08:00
Anuraag Agrawal
18df74eb19
Don't throw on null in propagator implementations. ( #2904 )
...
* Don't throw on null in propagator implementations.
* Baggage too
2021-02-24 09:28:16 -08:00
Anuraag Agrawal
b393a587dd
Have AttributesMap extend HashMap instead of contain LinkedHashMap ( #2906 )
...
* Reduce HashMp allocations for AttributeMap.
* Finish
* Add comment on why wrapper is actually needed.
2021-02-24 09:24:25 -08:00
Anuraag Agrawal
0b973d9a3c
Defend against null in a few more places. ( #2928 )
2021-02-24 08:05:24 -08:00
Bogdan Drutu
becded2181
Remove throws statements from the API until we decide how to document it ( #2912 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-22 18:30:09 -08:00
Bogdan Drutu
9e1c76b324
Do not allow null description in the StatusData ( #2896 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-22 15:31:45 -08:00
Anuraag Agrawal
77e8f71480
Reduce usage of errorprone annotations to MustBeClosed. ( #2898 )
2021-02-20 11:43:59 -08:00
Bogdan Drutu
55e96b3e87
Do not throw exception if byte array too short for fromBytes ( #2868 )
...
* Do not throw exception if byte array too short for fromBytes
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update api/all/src/test/java/io/opentelemetry/api/trace/TraceIdTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-02-18 11:58:31 +09:00
Bogdan Drutu
49f4bd016e
Remove package protected unused class ( #2870 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 11:35:31 +09:00
Bogdan Drutu
617162073a
Remove Nonnull annotations, we use package default Nonnull ( #2871 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 11:35:21 +09:00
Anuraag Agrawal
8f787275fc
[Breaking Change] Make TraceId.getTraceIdRandomPart private ( #2839 )
...
* Move traceidrandom
* Make BigEndianEncoding public-internal to use for Android compatibility.
* Rename BigEndianEncoding to sound less useful if accidentally imported.
2021-02-17 16:59:54 -08:00
John Watson
bd6a329211
Obfuscate the GlobalOpenTelemetry instance. ( #2829 )
...
* Obfuscate the GlobalOpenTelemetry instance.
This is to prevent people from casting to the SDK implementation.
Resolves #2788
* Add some more tests for the global obfuscation
2021-02-18 08:59:56 +09:00
Bogdan Drutu
509a2eee01
Mark GlobalMetricsProvider as final ( #2852 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:43:03 -08:00
Anuraag Agrawal
fa15e8b2d0
Remove BaggageBuilder.setParent / setNoParent ( #2838 )
2021-02-17 09:57:56 -08:00
Anuraag Agrawal
4623334c7c
Move Getter/Setter to top level ( #2840 )
2021-02-17 09:46:56 -08:00
Anuraag Agrawal
fa8bb33646
[Breaking Change] Rename API getDefault to noop! ( #2842 )
...
* Noop!
* errorprone
2021-02-17 09:18:22 -08:00
John Watson
f83c21638a
[Breaking Change] Rename TraceStateBuilder.set() to put() ( #2830 )
...
Provisionally resolves #2746
2021-02-17 08:16:24 -08:00