Anuraag Agrawal
55ff1dc533
Promote metrics API to stable ( #3919 )
...
* Add MeterProvider to OpenTelemetry API
* Spot
* Set
* Move NoopMeter to package private
* Merge metrics API code into API package
* Finish
* Fix / clean
* Drift
* Update extensions/noop-api/src/main/java/io/opentelemetry/extension/noopapi/NoopOpenTelemetry.java
Co-authored-by: John Watson <jkwatson@gmail.com>
* Spot
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-11-24 08:39:55 +09:00
Anuraag Agrawal
6ef3091cfb
Copy in spotless-conventions from instrumentation repo ( #3554 )
...
* Copy in spotless-conventions from instrumentation repo.
* Reformat
* A few more dotfiles
2021-08-27 08:28:31 -07:00
Anuraag Agrawal
42da2da1cc
Fix some nullability in SDK. ( #3474 )
...
* Fix some nullabiity in SDK.
* Cleanup
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2021-08-15 09:47:39 +09:00
Anuraag Agrawal
2844471335
Fix Resource version properties lookup and extract version file gener… ( #3467 )
...
* Fix Resource version properties lookup and extract version file generation.
* Only published
* Cleanup
* Better merge
* Fix merge
2021-08-12 10:15:51 -07:00
Christian Neumüller
dd7cae97d5
Fix OpenTelemetrySdk(.tracerProvider).tracerBuilder() being noop. ( #3466 )
...
* Add test for obfuscated tracerBuilder.
* Fix bug, add more tests.
2021-08-11 09:02:09 -07:00
Trask Stalnaker
60c3c5ca0c
Format build.gradle.kts files ( #3427 )
2021-07-29 13:21:38 +09:00
Anuraag Agrawal
f90040579e
Allow users to access the default Clock and TestClock ( #3363 )
...
* Allow users to access the default Clock and TestClock
* Update TestClock API
* Doc
* Fix
* html
* Less newlines
* Update sdk/common/src/main/java/io/opentelemetry/sdk/common/Clock.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-07-09 11:26:55 +09:00
Anuraag Agrawal
ce9c8854c7
Extract publishing and animalsniffer plugins. ( #3334 )
2021-06-22 08:23:16 +09:00
Anuraag Agrawal
864508983e
Extract JMH conventions plugin. ( #3324 )
2021-06-17 08:37:49 -07:00
Anuraag Agrawal
7f544416e4
Define an extension for otel-specific configuration of Java. ( #3317 )
2021-06-17 15:54:25 +09:00
Anuraag Agrawal
b9ca09b6c1
Extract java conventions plugin. ( #3316 )
2021-06-15 12:29:47 -07:00
Anuraag Agrawal
672330bf51
Upgrade to Gradle 7.0 ( #3228 )
2021-05-13 08:21:22 +09:00
John Watson
bd6a329211
Obfuscate the GlobalOpenTelemetry instance. ( #2829 )
...
* Obfuscate the GlobalOpenTelemetry instance.
This is to prevent people from casting to the SDK implementation.
Resolves #2788
* Add some more tests for the global obfuscation
2021-02-18 08:59:56 +09:00
Anuraag Agrawal
224845b6b1
[Breaking Change] Remove attribute value truncation. ( #2841 )
2021-02-17 09:08:39 -08:00
John Watson
20a1601089
[Breaking Change] Rename getEmpty() to empty() ( #2831 )
2021-02-17 08:15:23 -08:00
Anuraag Agrawal
b8c5acd3ff
Rename TraceConfig -> SpanLimits and move to upper package. ( #2686 )
2021-02-04 09:10:05 +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
John Watson
d16e51f798
Remove the remaining deprecated code from the project. ( #2612 )
2021-01-29 19:26:42 -08:00
Anuraag Agrawal
1a56b8b0d8
Migrate api / sdk projects to build.gradle.kts ( #2609 )
2021-01-29 10:10:40 -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
1f84ec099b
Create a MANDATORY Resource instance containing mandatory attributes. Merge that into the default resource. ( #2366 )
...
* Assign a fallback service name to resources when building the signal Provider instances.
* Add a MANDATORY resource that will contain all mandatory attributes.
* some cleanups of leftover stuff
* make the MANDATORY resource instance private
* updates from ResourceAttributes changes
* be sure to set the service name in the jaeger tests
2021-01-21 09:01:16 -08:00
Anuraag Agrawal
58bcf7fe88
Deprecate tracermanagement and SDK global access ( #2547 )
...
* Deprecate SdkTracerManagement
* Deprecate global SDK
* Deprecate more
* Fix
* Cleanup
* Fix
* Handle test order random
* Collector removed queued_retry
2021-01-21 14:39:32 +09:00
Anuraag Agrawal
b4218426ee
Prevent setting global OpenTelemetry twice. ( #2548 )
...
* Prevent setting global OpenTelemetry twice.
* Unneessary volatile
* Separate testing class
* Cleanup
* Delete
* Update api/all/src/main/java/io/opentelemetry/api/GlobalOpenTelemetry.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-21 13:55:46 +09:00
Anuraag Agrawal
4f8de1521b
Make OpenTelemetrySdk propagators final ( #2543 )
2021-01-18 14:01:37 +09:00
Anuraag Agrawal
6bee59e912
Remove OpenTelemetry SPI ( #2504 )
2021-01-14 11:35:41 +09:00
Bogdan Drutu
957bd0ad1c
Move jmh benchmarks to the artifact that is testing ( #2515 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-13 14:05:51 -08: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
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
620969556f
Cleanup OTLP exporter timeout settings. ( #2446 )
...
* Cleanup OTLP exporter timeout settings.
* error prone
2021-01-09 15:32:20 +09:00
Bogdan Drutu
757cd79889
With all the operations on the Aggregator, no need to define Accumulation ( #2462 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-08 08:28:08 -08:00
Anuraag Agrawal
75e01110e4
Deprecate OpenTelemetry SPI. ( #2453 )
2021-01-08 13:37:44 +09:00
Anuraag Agrawal
4b8a0c8591
Add TraceConfig.builder() ( #2445 )
2021-01-07 10:02:53 -08:00
Anuraag Agrawal
6cf8f934b1
Update dependencies ( #2427 )
...
* Update dependencies
* Brave
2021-01-06 16:32:18 +09: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
Bogdan Drutu
838be8ef8e
Move accumulations to a different package ( #2412 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-28 17:52:20 -08:00
Anuraag Agrawal
f8f409bae5
Rename OpenTelemetrySdkBuilder.build to buildAndRegisterGlobal and ad… ( #2387 )
...
* Rename OpenTelemetrySdkBuilder.build to buildAndRegisterGlobal and add non-registering version.
* Some clean
2020-12-25 11:04:02 +09:00
Bogdan Drutu
b1a22e03a6
Rename Aggregator -> AggregatorHandle; AggregatorFactory -> Aggregator ( #2395 )
...
* Rename Aggregator -> AggregatorHandle; AggregatorFactory -> Aggregator
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update comments for Aggregator and AggregatorHandle
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-24 08:11:18 -08:00
Anuraag Agrawal
9f675da85a
Remove usage of updateTraceConfig in tests. ( #2402 )
...
* Remove usage of updateTraceConfig in tests.
* Clean
2020-12-23 08:15:50 -08:00
Anuraag Agrawal
24ef29efea
Add SimpleSpanProcessor.create and deprecate SimpleSpanProcessorBuilder ( #2374 )
...
* Deprecate SimpleSpanProcessorBuilder
* Null test
2020-12-23 12:31:02 +09: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
Bogdan Drutu
296723b9f7
Change aggregator to use generics for Accumulation ( #2382 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-22 11:40:20 -08:00
Bogdan Drutu
927fddc4e1
Add a notion of Accumulation as the value passed between Accumulator … ( #2379 )
...
* Add a notion of Accumulation as the value passed between Accumulator and Processor
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix PR review comments
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-21 13:12:46 -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
fb5b497986
Allow adding span processors when building a tracer provider. ( #2223 )
...
* Allow adding span processors when building a tracer provider.
* Drift
* Mutate provided providers too for now.
* Spot
2020-12-18 13:04:24 -08: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
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
Bogdan Drutu
a8b30ea503
Remove deprecated code in the API ( #2341 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-17 13:18:05 -08:00