Commit Graph

1751 Commits

Author SHA1 Message Date
Bogdan Drutu 5f155f1495
Small cleanups in the propagators extension (#2717)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 12:13:09 -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
John Watson 0bad3066fb
clean up the actions to only run on main branch (#2715) 2021-02-05 09:02:48 -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
John Watson e7fcbb7e46
Move the parsing of the otel.resource.attributes into an SPI impl (#2713) 2021-02-04 18:35:05 -08: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
John Watson f543fe85f8
Add javadoc to the package-info.java for Sampling (#2694)
* Add javadoc to the package-info.java for Sampling
and update some javadoc for parent-based Samplers.

* Suppress linelength for package-info

* tweak some language, add a link to the spec

* pin the url to a specific SHA

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-02-04 10:56:32 -08:00
Bogdan Drutu bc326c6c0d
Clarify thread-safety requirements for SDK components, fix small issues (#2708)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-04 09:16:23 -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
John Watson eb4c4b8721
update the CHANGELOG.md for the latest changes (#2695)
* update the CHANGELOG.md for the latest changes

* Add an entry for the pending TraceConfig rename
2021-02-03 16:29:42 -08:00
Anuraag Agrawal b8c5acd3ff
Rename TraceConfig -> SpanLimits and move to upper package. (#2686) 2021-02-04 09:10:05 +09: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
John Watson 687c3b082c
Update the check in the tracer to see if the SDK has been shut down. (#2673)
* Update the check in the tracer to see if the sdk has been shut down.
This changes the logic so that we only need to have called shutdown on the TracerSharedState, not that it has successfully shut down.

* remove the lock in the hot path
2021-02-03 08:13:57 -08:00
Bogdan Drutu 506a49b48f
Fix SpanWrapper toString to avoid duplicates (#2671)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-03 08:04:34 -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
John Watson 04ae15da36
update the trace-related env vars to match the spec (#2677) 2021-02-03 11:35:05 +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
John Watson d7b00786bd
Update the CHANGELOG for the latest changes. (#2670) 2021-02-02 18:14:11 -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
Anuraag Agrawal 8fc392e8ed
Publish BOM for alpha artifacts. (#2669) 2021-02-02 09:03:09 -08:00
Bogdan Drutu 527b5f4549
Expose the SpanContext to the SpanData (#2660)
This helps exporter to have access directly to bytes, hex or any other format we will expose for the ids in the SpanContext.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 08:54:26 -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
Anuraag Agrawal cd7364dd0b
Migrate proto to kts (#2639)
* Migrate proto to kts

* Less types
2021-02-02 18:17:49 +09: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
Anuraag Agrawal d4371d2a6e
Tweak javadoc options (#2662)
* Tweak javadoc options

* Exclude more
2021-02-01 20:02:57 -08:00
Anuraag Agrawal 393420dd1c
Use shadow plugin to generate bundled jars. (#2641)
* Use shadow plugin to generate bundled jars.

* Update workflow

* Fix workflow command
2021-02-02 12:04:54 +09:00
Anuraag Agrawal 94955b958f
Migrate bom project to kts. (#2638) 2021-02-02 09:10:46 +09:00
Anuraag Agrawal a92ad2a7a0
Migrate :all to kts (#2640) 2021-02-02 09:10:13 +09: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