Commit Graph

1735 Commits

Author SHA1 Message Date
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
Bogdan Drutu c048ab8954
Mark SamplingResult as immutable (#2630)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 09:48:29 -08:00
John Watson 13effbd48e
update the QUICKSTART for 0.15.0 (#2615)
* update the QUICKSTART for 0.15.0

* Update QUICKSTART.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update QUICKSTART.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update QUICKSTART.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* update the docs based on feedback

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-02-01 09:42:53 -08:00
Anuraag Agrawal 85382fd786
Consolidate animalsniffer config to top level. (#2637)
* Consolidate animalsniffer config to top level.

* Revert unintended
2021-02-01 09:27:52 -08:00
Anuraag Agrawal bdd0a90cf8
Apply project modules / version conflict failure detection to all configurations to resolve TODOs. (#2636) 2021-02-01 09:26:27 -08:00
Anuraag Agrawal a18d553bdc
Use lazy iteration of test tasks for coverage collection to allow additional test sets to be included. (#2634) 2021-02-01 09:25:36 -08:00
John Watson 68ee47108a
Example updates for 0.15.0 (#2611)
* WIP on updating examples for 0.15.0

* final updates to 0.15.0

* make the getter static
2021-02-01 09:24:02 -08:00
Sergei Malafeev 24cfb4acbf
OtTracerPropagator: inject and extract baggage (#2594) 2021-02-01 14:07:12 +01:00
sullis 08aa5c4ed6
archunit 0.16.0 (#2621) 2021-02-01 12:25:50 +09:00
Bogdan Drutu 3423c008a4
Remove unnecessary public method (#2622)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 12:24:27 +09: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
Bogdan Drutu 4bad109db5
Remove reference to not public class MultiSpanExporter (#2633)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-01 11:46:19 +09:00
Anuraag Agrawal f1a5fa3550
Use OpenCensus implementation for binary propagation instead of copying. (#2605) 2021-01-30 16:03:51 +09:00
John Watson d16e51f798
Remove the remaining deprecated code from the project. (#2612) 2021-01-29 19:26:42 -08:00
John Watson 1201377a65
Add the span kind and the tracer name/version to the logging exporter (#2616)
* Add the span kind and the tracer name/version to the logging exporter

* formatting
2021-01-29 19:19:39 -08:00
John Watson df144d3712
Start the changelog for the next release. (#2614)
* Start the changelog for the next release.

* add a missed item from 0.15.0
2021-01-29 19:18:25 -08:00
Anuraag Agrawal bfe0e196f8
Remove deprecated setServiceName (#2610) 2021-01-29 10:27:37 -08:00