Commit Graph

149 Commits

Author SHA1 Message Date
Bogdan Drutu e60b8101d1
[Breaking Change] Remove B3Propagator.Builder, add static methods to access possible instances (#2863)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 12:40:48 +09:00
Bogdan Drutu 904ca1d873
Move Builders as non inner classes in sdk-extension/logging (#2864)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 15:05:33 -08:00
Bogdan Drutu 6bb9894b2f
Mark public classes as final in sdk-extensions/logging (#2861)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 13:25:11 -08:00
Bogdan Drutu cdebf865ce
Mark public classes as final in sdk-extensions/autoconfigure (#2860)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 13:10:34 -08:00
Bogdan Drutu 865b596dba
Mark public classes as final in sdk-extensions/jaeger-remote-sampler (#2855)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:43:56 -08:00
Anuraag Agrawal 0730a9e79c
[Breaking Change] Move ResourceProvider SPI to autoconfigure module (#2837)
* autoconfigure

* Finish

* Refactor

* Fix OsResource to use empty

* Fix BeanstalkResource to use empty

* Fix ResourceTest to use empty

* Fix Ec2Resource to use empty

* Fix EcsResource to use empty

* Fix ProcessRuntimeResource to use empty

* Fix ProcessRuntimeResource to use empty

* Fix EksResource to use empty

* Fix LambdaResource to use empty

* Fix ProcessResource to use empty

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-02-17 12:41:07 -08:00
Bogdan Drutu 4166c961bc
Remove public unused class CommonProperties in otproto (#2848)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:28:49 -08:00
Anuraag Agrawal 4623334c7c
Move Getter/Setter to top level (#2840) 2021-02-17 09:46:56 -08:00
John Watson 20a1601089
[Breaking Change] Rename getEmpty() to empty() (#2831) 2021-02-17 08:15:23 -08:00
Anuraag Agrawal 43f1ecf7ed
Remove support for schemaless URLs for gRPC exporters. (#2834) 2021-02-17 16:37:49 +09:00
John Watson 920f79d151
clean up the javadoc and make examples pasteable (#2824)
* clean up the javadoc and make examples pastable
resolves #2817

* formatting
2021-02-17 12:31:08 +09:00
Reginald McDonald 14ace1ec32
2816: Autoconfigure to use SimpleSpanProcessor when logging exporter is used (#2832)
* Default to use SimpleSpanProcessor for LoggingSpanExporter when configured through env

When the SDK is configured to use a logging exporter from environment variables using autoconfiguration, a SimpleSpanProcessor will be used instead of a BatchSpanProcessor. For all other exporters, a BatchSpanProcessor will be used.

* Replace set of strings with a direct string equality
2021-02-16 18:38:17 -08:00
John Watson 931ad5b723
Properly shutdown tracer providers synchronously via close() (#2828)
* Properly shutdown tracer providers synchronously via close()
Resolves #2825

* formatting
2021-02-17 10:39:19 +09:00
John Watson 0960999d62
Set the default propagators if none are specified. (#2827) 2021-02-16 16:30:05 -08:00
Anuraag Agrawal 29140bdf7b
Add docs for autoconfiguration options. (#2812)
* Add docs for autoconfiguration options.

* Better docs

* quickstart
2021-02-17 09:23:25 +09:00
Anuraag Agrawal 900c35ed8c
Migrate remaining gradle scripts to kotlin (#2820)
* Migrate remaining gradle scripts to kotlin

* Finish more
2021-02-16 14:11:07 -08:00
Anuraag Agrawal 3264ae9e5f
Enable animal sniffer for resources artifact. (#2819) 2021-02-15 15:40:17 -08:00
Anuraag Agrawal 1a10c83506
Default exporters to OTLP per spec. (#2811) 2021-02-15 12:37:37 +09:00
Anuraag Agrawal e4886283a7
Migrate sdk-extensions to kts. (#2814) 2021-02-15 12:21:10 +09:00
Anuraag Agrawal 9ee2bdddee
Update ottrace env var value. (#2813) 2021-02-12 07:56:42 -08:00
John Watson 27dacb09fa
update the READMEs for 0.16.0 (#2783)
* update the READMEs for 0.16.0

* update context, add baggage

* trim down to trace
2021-02-09 13:31:00 -08:00
Anuraag Agrawal 4670252e20
Move AwsXrayPropagator to extension artifact. (#2771) 2021-02-09 11:36:58 +09:00
Anuraag Agrawal 522953bd8f
Restore Trace/SpanId.fromBytes (#2750)
This reverts commit d6fea3a70a.
2021-02-08 07:42:49 -08:00
Carlos Alberto Cortez 73d17911e4
Rename OtTracerPropagator to OtTracePropagator. (#2718)
* Rename OtTracerPropagator to OtTracePropagator.

* fix

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-02-08 18:23:01 +09:00
John Watson eb529cb26d
Revert the SpanContext trace/span id accessor methods. (#2749) 2021-02-08 09:51:49 +09:00
Bogdan Drutu dbfd07faf8
[BREAKING CHANGE] Remove not very used method from SpanData (#2722)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:34:54 -08:00
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