Commit Graph

440 Commits

Author SHA1 Message Date
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
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
Anuraag Agrawal 62251dd3d2
Accept TimeUnit and Duration for BSP values instead of forcing millis. (#2444)
* Accept TimeUnit and Duration for BSP values instead of forcing millis.

* Test invalid

* Clean
2021-01-08 11:44:51 -08:00
Anuraag Agrawal fe061e90bf
Publish jfr-events module (#2461)
* Publish jfr-events module

* Fix jacoco config error

* testJava8
2021-01-08 09:22:31 -08:00
Anuraag Agrawal 1d8c0d9229
Use ParentBased for jaeger remote sampler results (#2451)
* Use ParentBased for jaeger remote sampler results

* Merge

* Cleanup name

* Remove extra method
2021-01-08 14:47:06 +09:00
Anuraag Agrawal 340ce9f27e
Make JaegerRemoteSamplerBuilder consistent with other builders. (#2443)
* Make JaegerRemoteSamplerBuilder consistent with other builders.

* unset

* Return generic type

* Cleanup
2021-01-08 14:20:48 +09:00
John Watson 5daa50ffdc
Mark a few more modules as alpha release status (#2436)
* mark a few more modules as alpha release status

* alphacate a few more modules

* remove the copyright/license from gradle.properties
2021-01-07 20:30:53 -08:00
Anuraag Agrawal d8c4c86790
Return singleton xray id generator (#2447) 2021-01-07 10:36:57 -08:00
Anuraag Agrawal 4b8a0c8591
Add TraceConfig.builder() (#2445) 2021-01-07 10:02:53 -08:00
Anuraag Agrawal bdbab03332
Deprecate ConfigBuilder. (#2442) 2021-01-07 08:52:39 -08:00
Anuraag Agrawal e749f2b262
Add autoconfiguration wrapper artifact (#2401)
* Add autoconfiguration wrapper artifact

* WIP

* WIP

* WIP

* WIP

* WIP

* Mostly done

* Propagator classpath

* Finish

* Cleanup

* Cleanup

* Not visible

* Update sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/ConfigProperties.java

Co-authored-by: John Watson <jkwatson@gmail.com>

* More merge

Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-07 12:02:09 +09:00
Anuraag Agrawal 0dac3f6157
Set archiveBaseName pattern for sdk-extensions too (#2441) 2021-01-07 11:31:27 +09:00
John Watson 015708b7a7
Move the semantic conventions generated code into its own module (#2423)
* Move the semantic conventions generated code into its own module

* remove un-needed dependencies

* move the semconv module to the top level, out of the API namespace

* Update README.md

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

* move SemanticAttributes to a more appropriate package and deprecate the old ones in the api package.

* Apply suggestions from code review

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-06 08:25:17 -08:00
Anuraag Agrawal 4916931740
Use health port for jaeger container startup check. (#2426) 2021-01-05 09:49:48 -08:00
Bogdan Drutu 450db6c2b2
Change MetricData to expose the Point type that is expected for each data type (#2413)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-03 08:32:52 -08:00
Anuraag Agrawal d48eab6aa9
Allow registering TraceConfigSupplier and use it from zpages. (#2390)
* Allow registering TraceConfigSupplier and use it from zpages.

* Finish

* Remove unnecessary method

* Same method name
2020-12-23 11:52:17 +09:00
Anuraag Agrawal 8fc4e627ca
Reduce usage of GlobalOpenTelemetry (#2386)
* Reduce usage of GlobalOpenTelemetry

* Cleanup
2020-12-23 10:17:46 +09:00
Anuraag Agrawal 94d469b71d
Avoid spying the class under test. (#2368)
* Avoid spying the class under test.

* Less methods
2020-12-22 09:58:27 -08:00
Anuraag Agrawal f1fa6ba44d
Return SpanProcessor from zpages instead of automatically mutating global (#2376) 2020-12-21 13:00:27 -08:00
Bogdan Drutu 95163d71fb
Avoid using mutable addSpanProcessor when trivial to change (#2365)
* Run go mod tidy on the master

* Fixes

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2020-12-21 12:22:36 +09:00
Anuraag Agrawal 8dfdce3fe9
Use http helper class in EC2 Resource. (#2355)
* Use http helper class in EC2 Resource.

* No more todo
2020-12-21 12:01:57 +09:00
Anuraag Agrawal 94422d9dc0
Remove dependency on metrics from sdk:all (#2356)
* Remove dependency on metrics from sdk:all

* Update sdk/all/build.gradle

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-18 08:16:04 -08:00
Anuraag Agrawal 4de9c43ac0
Use public readProperties instead of protected fromConfigMap to avoid annoying pattern of initializing a subclass for testing. (#2357) 2020-12-18 08:10:50 -08:00
Anuraag Agrawal 6954d1f624
Use normal filesystem-based Gradle paths. (#2332)
* Use normal filesystem-based Gradle paths.

* Update workflow by making agnostic to jacoco project name

* More merge
2020-12-18 12:07:33 +09:00
John Watson d2a012ac33
update the docs for the 0.13.1 patch release. (#2351) 2020-12-18 08:51:36 +09:00
John Watson b01afaac46
CHANGELOG and documentation updates for the 0.13.0 release (#2338)
* CHANGELOG updates for Dec 17, 2020

* update docs for 0.13.0 release

* point to github discussions
2020-12-17 12:28:17 -08:00
Anuraag Agrawal 17fa4e9c97
Only apply java-library to projects and configure reactively. (#2319)
* Use java-library

* Only apply java-library to projects and configure reactively.

* Consistency

* Cleanup
2020-12-17 09:11:44 +09:00
Anuraag Agrawal 3abf8262d0
Remove protobuf_util where not used. (#2317)
* Remove protobuf_util where not used.

* Revert unintended
2020-12-16 15:27:56 +09:00
Anuraag Agrawal 05a2049095
Test AWS HttpClient TLS connection (#2308) 2020-12-16 14:38:29 +09:00
Anuraag Agrawal 099b5620da
Move OTLP adapters to otproto module for use outside of gRPC exporters. (#2306) 2020-12-16 13:14:01 +09:00
Anuraag Agrawal 8a369e3695
Make public src/main classes final where possible. (#2309)
* Make public src/main classes final where possible.

* methods

* Spot
2020-12-16 13:13:04 +09:00
Bogdan Drutu dbb1ae91f9
Deprecate metrics from opentelemetry-api, add a global version in metrics api (#2279)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-15 15:14:50 -08:00
Bogdan Drutu 25bf879df7
Split global functionality into a separate class (#2233)
This ensure clear separation of functionality. This PR does not change any functionality, it just restructures the code to separate global functionality from
the Default implementation. Also helps to ensure that Global initialization does not happen by mistake when working only with the default implementation.

Also it helps with methods like `OpenTelemetry.get()` and `OpenTelemetry.set()` to understand they are interacting with global instance

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-15 10:27:35 -08:00
Anuraag Agrawal 3701a8bdf6
Move DaemonThreadFactory to internal package. (#2288) 2020-12-14 21:06:00 -08:00
Anuraag Agrawal 91dc119181
Move Sdk to be prefix of implementation classes instead of suffix/midfix. (#2292) 2020-12-14 11:59:28 -08:00
Anuraag Agrawal 4403923bed
Migrate AWS mock server tests to junit5. (#2287) 2020-12-14 10:20:19 -08:00
Prashant Srivastava f88e207f09
Adding instructions to run benchmarks (#2271)
* benchmark readme for opentelemetry-sdk

* benchmark instructions for all the modules

* Fixing typo
2020-12-11 14:40:16 +09:00
Anuraag Agrawal 56235a1114
Move TraceConfig.Builder to the top level (#2241)
* Move TraceConfig.Builder to the top level

* Remove builder
2020-12-09 19:54:07 -08:00
Anuraag Agrawal e4e3dfbdb0
Rename Link.getContext -> Link.getSpanContext (#2224) 2020-12-08 10:43:26 -08:00
John Watson a3615b9d91
have the zpages README reference a released version (#2201) 2020-12-05 14:52:03 +09:00
Anuraag Agrawal 658d23ee1d
Update README + Changelog for 0.12.0 release. (#2196) 2020-12-04 10:36:36 -08:00
Anuraag Agrawal 8697de9afa
Detect GC leaks of scopes in StrictContextStorage. (#2164)
* Detect GC leaks of scopes in StrictContextStorage.

* More

* Finish

* Force GC more aggressively

* Cleanup

* Vendor code directly

* Copy test too

* Try waiting more

* ep

* oops

* Remove from build.gradle

* Drift

* Log on multiple

* Cleaner ourselves.

* EP

* Move into if

* Revert accidental
2020-12-04 13:04:27 +09:00
Anuraag Agrawal 4762c6a25d
Remove ReadableAttributes (#2187)
* Remove ReadableAttributes

* Don't rewrite history

* Drift
2020-12-03 11:26:24 -08:00
Anuraag Agrawal cf5b582c5b
Replace AttributeConsumer with BiConsumer (#2174)
* Replace AttributeConsumer with BiConsumer

* Forgot to delete
2020-12-02 16:52:06 +09:00
Mateusz Rzeszutek 8bcfaa46bc
Add support for AWS Lambda resource attributes (#2142)
* Add support for AWS Lambda resource attributes

* Fix after rebase

* Minor refactor

* Minor refactor

* Minor refactor
2020-12-02 13:36:44 +09:00
Prashant Srivastava 6bbe8d47dc
Adding micro-benchmarks for traceId and spanId generation (#2170) 2020-12-02 09:41:47 +09:00
Anuraag Agrawal d31995f75d
Add code coverage for OS resources. (#2167)
* Add code coverage for OS resources.

* Fix assertion
2020-12-01 11:04:01 -08:00
Anuraag Agrawal 2aeaf1a392
Increase test coverage of logging extension. (#2166)
* Increase test coverage of logging extension.

* More

* More
2020-12-01 11:01:33 -08:00
Anuraag Agrawal ca3714053f
Replace SpanData.hasRemoteParent/getParentSpanId with getParentSpanContext (#2146)
* Remove SpanData.hasRemoteParent

* Replace parentSpanId with parentSpanContext

* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>

* Keep parentId

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-01 09:50:11 -08:00
Anuraag Agrawal af77508af7
Remove Guava from zpages (#2150)
* Remove Guava from zpages

* Clean
2020-12-01 14:14:36 +09:00
Anuraag Agrawal 09d371ba09
Enable tooling for mrjar and use it to get epoch time in best way for Java 8 or 9+. (#2154) 2020-12-01 09:30:05 +09:00
Anuraag Agrawal ed57751d00
Remove Guava from SDK extensions, except zpages (#2149)
* Remove Guava from SDK extensions, except zpages

* Fix
2020-12-01 09:12:58 +09:00
Mateusz Rzeszutek 2130644667
Support process.runtime.* resource attributes (#2143)
* Support process.runtime.* resource attributes

* Code review comments

* Add process.runtime.* attributes to README.md
2020-11-30 10:12:15 -08:00
Anuraag Agrawal 883267423e
Rename opentelemetry-sdk-extension-aws-v1-support to opentelemetry-sdk-extension-aws. (#2129) 2020-11-25 11:18:33 -08:00
sfriberg 82cac7a7ec
Prototype for JFR events using Context interceptor (#963)
* Rewritten for new context implementation

Signed-off-by: Staffan Friberg <sfriberg@kth.se>

* remove nb file

* animalsniffer

* spotless

* rewrite

* Use new ContextStorageWrapper capabilities

* work-around JDK bug

* update junit

* update readme

* Update build script

* PR comments

* Update sdk-extensions/jfr-events/src/main/java/io/opentelemetry/sdk/extension/jfr/JfrSpanProcessor.java

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

* Update JfrSpanProcessor.java

* Update comment

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-11-24 14:49:02 -08:00
Anuraag Agrawal 96c7f404b4
Don't repeat Java 8 support among all the subproject READMEs and at top level, clarify that published artifacts are Java 8, but building requires additional instructions. (#2124) 2020-11-24 09:04:40 -08:00
Anuraag Agrawal ac672e56bf
Update dependencies (#2115) 2020-11-21 09:39:27 -08:00
Anuraag Agrawal d940947e53
Hide implementation of MultiSpanExporter/Processor behind interface. (#2091)
* Hide implementation of MultiSpanExporter behind interface.

* spanprocessor too

* composite

* composite

* Optimize composites based on number of items.

* Spotless

* IntelliJ + spotless race condition

* Fix test
2020-11-20 10:54:35 +09:00
John Watson ec7884fbf0
Update the docs for the 0.11.0 release (#2097)
* update the docs for the 0.11.0 release

* also update the examples dependency, since no changes are necessary
2020-11-19 12:20:08 -08:00
Anuraag Agrawal bd652270dd
Remove usages of beta Guava APIs. (#2095) 2020-11-19 12:18:34 -08:00
John Watson 1fe334ff12
Some cleanup in span land. (#2062)
CHANGELOG:  Deprecated the `getCanonicalCode` method on `SpanBuilder` ; replaced with `getStatusCode`

* Some cleanup in span land.
* Clean up the SpanBuilder javadoc to match the current APIs
* Scrub mentions of canonical status code
* Deprecate the getCanonicalCode method on SpanBuilder and replace with getStatusCode

* rename an internal method to make more sense

* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* add tests for the deprecated method

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
2020-11-11 18:34:07 -08:00
Anuraag Agrawal b5efbcf187
Move builders to top level. (#1958)
* Move builders (and TraceStateEntry) to top level.

* Revert Entry

* Fix and more revert

* Drift
2020-11-10 14:50:37 +09:00
Anuraag Agrawal 1883c578bd
Add unit to start, end and event timestamp accepting methods in Span. (#1969)
* Add unit to timestamp accepting methods in Span.

* end timestamp

* Merge

* Merge

* Add Instant versions too
2020-11-09 16:19:52 -08:00
Marius Volkhart 3e31fd91aa
Replace all assertions with AssetJ's assertThat (#2042)
* Replace all assertions with AssetJ's assertThat

Remove uses of JUnit 4 and JUnit 5 assert* where a functional equivalent exists in AssertJ. JUnit 5's assertThrows remains.

Fixes #1994

* fixup! Replace all assertions with AssetJ's assertThat
2020-11-07 14:48:00 -08:00
Anuraag Agrawal 9c4c52dfee
Switch animal sniffer signature to gummy bears. (#2015) 2020-11-06 08:56:26 +09:00
Carlos Alberto Cortez 4aba70877c
Push README updates. (#2024) 2020-11-05 16:03:42 +01:00
Bogdan Drutu 2dfc417e2d
Rename package name for sdk extensions to singular extension (#2002)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 12:26:43 -08:00
Bogdan Drutu 381133ab26
Remove testbed artifact, add testbed tests to trace sdk (#1999)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 09:00:33 -08:00
Anuraag Agrawal 5be613a3f0
Replace EndSpanOptions.Builder with factory. (#1934)
* Replace EndSpanOptions.Builder with factory.

* create

* Remove class completely
2020-11-04 13:33:10 +09:00
Bogdan Drutu 139fcf261d
Fix proto generated files package for jaeger extension (#1993)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 17:09:50 -08:00
Bogdan Drutu faf6b9f15e
Change testbed to use the junit5 extension (#1988)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 15:22:11 -08:00
Anuraag Agrawal db93a841ed
Rename exporter artifacts to singular (#1984)
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 14:24:00 -08:00
Bogdan Drutu 2046ec050e
Move testing-internal artifact to sdk-testing (#1987)
* Move testing-internal artifact to sdk-testing

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix missed usage of TestSpanData

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 13:54:43 -08:00
Anuraag Agrawal 23392d9052
Make Attribute/LabelConsumer consistent with Java 8 BiConsumer (#1983)
* Make Attribute/LabelConsumer consistent with Java 8 BiConsumer

* more

* Spot
2020-11-03 10:03:52 -08:00
Anuraag Agrawal 390d92e49a
Rename folder names from underscore to hyphen (#1968) 2020-11-03 14:46:40 +09:00