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
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
d932baa919
Remove trivial usage of fromLong[s] methods ( #2730 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:28:00 -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
e7fcbb7e46
Move the parsing of the otel.resource.attributes into an SPI impl ( #2713 )
2021-02-04 18:35: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
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
John Watson
04ae15da36
update the trace-related env vars to match the spec ( #2677 )
2021-02-03 11:35:05 +09: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
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
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
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
4a7e94e2dc
Use duration parser in autoconfiguration. ( #2608 )
2021-01-29 10:25:06 -08:00
Anuraag Agrawal
3e341f9af5
Update changelog / docs for 0.15.0 ( #2603 )
2021-01-29 08:55:45 -08:00
Josh Suereth
5c45bc1ae4
Add a Duration parser for configuration. ( #2439 )
...
* Add a Duration parser for autoconfigure helpers.
- Create a new `getDuration()` method that reads configuration properties as "duration strings"
- Add a utiility parser for extraction of `{number}{unit}` type configuration values.
- Add a parser for `{unit}` strings that convert to a time unit (millis, seconds, minutes, hours, days)
- Update unit tests.
* Update sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/ConfigProperties.java
* Public / docstring consistency
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-29 15:45:43 +09:00
John Watson
d66135c625
Enable auto-configuration of custom, named span exporters. ( #2595 )
...
* Enable auto-configuration of custom, named span exporters.
* Update sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/ConfigurableSpanExporterProvider.java
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
* simplify the test for the configuration a bit
* Update the javadoc a bit.
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
2021-01-27 17:21:53 -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
15fcadd8d7
Move Sampler to SdkTracerProvider ( #2585 )
...
* Move Sampler to SdkTracerProvider
* Better zpages
* Test
2021-01-26 20:32:49 -08:00
John Watson
90574a3134
enable auto-configuring the logging metrics exporter ( #2580 )
...
* enable auto-configuring the logging metrics exporter
* fix the class name for the metrics exporter
* extract a method for configuring the IMR
2021-01-26 12:53:12 -08:00
Anuraag Agrawal
6dd4db3b0c
Allow setting trusted certificate variable. ( #2569 )
...
* Allow setting trusted certificate variable.
* Merge
2021-01-25 13:29:06 +09:00
John Watson
5dd187ed28
a few missed updates to remove _MILLIS to the BSP configs ( #2574 )
2021-01-22 14:55:36 -08:00
John Watson
d516879084
remove the `millis` from the BSP config options ( #2568 )
2021-01-21 20:29:29 -08:00
John Watson
2afae7b024
Reverse the direction of the Resource.merge ( #2542 )
2021-01-20 08:10:07 -08:00
John Watson
66ca483ede
Generate the ResourceAttributes class ( #2540 )
...
* Generate the ResourceAttributes class
* deprecate the old one
* convert usages to the new one
* re-use the template with some special logic for the addition
* deprecate the old resource attributes in the wrong class
2021-01-19 23:02:11 -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
af546a42df
Set autoconfigure release to alpha. ( #2551 )
2021-01-19 07:50:07 -08:00
Anuraag Agrawal
3f445538c4
Move sampling Decision to top-level ( #2546 )
...
* Move sampling Decision to top-level
* Merge
2021-01-18 14:12:14 +09:00
Anuraag Agrawal
cd1dbe5395
Use endpoint scheme in OTLP exporters ( #2536 )
...
* Use endpoint scheme in OTLP exporters
* Tests with authy authority
2021-01-17 14:15:00 +09:00
Bogdan Drutu
cbcec6b359
Rename Point to PointData to suggest that it represents data reprezentation ( #2519 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-14 13:05:40 +09:00
Anuraag Agrawal
6bee59e912
Remove OpenTelemetry SPI ( #2504 )
2021-01-14 11:35:41 +09:00
Anuraag Agrawal
e0f6260bc9
Remove ConfigBuilder and deprecated exporter constants / timeouts ( #2506 )
...
* Remove deprecated usage from exporters
* Remove ConfigBuilder and deprecated exporter settings.
2021-01-14 09:31:03 +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
John Watson
bd5a770afa
Update the READMEs for 0.14.1 ( #2516 )
...
and remove the readme updating step from the patch release action
2021-01-13 13:11:43 -08:00
Anuraag Agrawal
b9ae80d0f4
Update README for 0.14.0 release ( #2502 )
2021-01-13 08:41:55 -08:00
Anuraag Agrawal
86cd56441c
Deprecate StatusData.isUnset ( #2500 )
...
* Deprecate StatusData.isUnset
* Cleanup
* option 2
2021-01-13 13:58:30 +09:00
Anuraag Agrawal
efd559f1e0
Update exporter environment variable to latest spec's singular forms. ( #2499 )
...
* Update exporter environment variable to latest spec's singular forms.
* Fix!
* Use check per test-sets recommendation
* Missed one more
2021-01-13 13:46:26 +09:00
Bogdan Drutu
ca661b8c40
Avoid using inner classes in SpanData ( #2495 )
...
* Avoid using inner classes in SpanData
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Javadoc cleanups
* Remove non-existent type param
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-12 19:12:00 -08:00
Anuraag Agrawal
bdba132399
Use bogus endpoint for initialSampler test to prevent flakiness. ( #2497 )
2021-01-13 11:46:57 +09:00
Bogdan Drutu
61eafc62eb
Avoid using inner classes in MetricData ( #2493 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-13 11:31:24 +09:00
Bogdan Drutu
a6d2047b23
Implement MetricProducer directly by the SdkMeterProvider ( #2489 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-12 14:51:05 -08:00
Anuraag Agrawal
b73762af85
Deprecate TraceProtoUtils ( #2480 )
...
* Deprecate TraceProtoUtils
* Update jaeger
2021-01-12 09:41:02 -08:00
Anuraag Agrawal
1fc179e546
Add a PropagatorProvider for custom propagators with autoconfiguration. ( #2475 )
...
* Add a PropagatorProvider for custom propagators with autoconfiguration.
* Dedupe / comment
* ConfigurablePropagatorProvider
* Comment
* doc
2021-01-12 15:06:29 +09:00
John Watson
fc28ee5696
Update the README ( #2479 )
...
* Update the README to use the bom for dependencies
* allow auto-alpha updating of docs
* update the metrics to show the most recent alpha
* make the zpages docs update with the alpha tag
* Update README.md
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* update the gradle snapshot example
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-12 14:06:54 +09:00
John Watson
f1f9cbccc1
Set the default traceidratio to 1.0 when it is not specified ( #2476 )
2021-01-11 12:30:45 -08:00
Anuraag Agrawal
620969556f
Cleanup OTLP exporter timeout settings. ( #2446 )
...
* Cleanup OTLP exporter timeout settings.
* error prone
2021-01-09 15:32:20 +09:00
Bogdan Drutu
72dd37b757
Extract Builder as a top-level class ( #2469 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-08 15:39:50 -08:00