Commit Graph

231 Commits

Author SHA1 Message Date
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
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
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
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 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 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
Bogdan Drutu f2974becec
Remove unused package-info files from removed packages (#2558)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-19 14:26:43 -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 6bee59e912
Remove OpenTelemetry SPI (#2504) 2021-01-14 11:35:41 +09:00
Anuraag Agrawal 75e01110e4
Deprecate OpenTelemetry SPI. (#2453) 2021-01-08 13:37:44 +09: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
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 bf77ea76d5
Add some test coverage to api module (#2408) 2020-12-26 12:48:27 -08:00
Anuraag Agrawal 2d1bdaff73
Merge non-metrics API into API artifact. (#2369)
* Merge non-metrics API into API artifact.

* Revert kotlin newline
2020-12-24 14:13:54 +09:00
Anuraag Agrawal 70f665992e
Migrate assertThrows -> assertThatThrownBy (#2375) 2020-12-21 08:57:33 -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
Bogdan Drutu cbc8891cae
Mark API's classes final, caveat a bit of duplicate code (#2324)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-17 11:16:35 -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
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 37afb33659
Split global functionality into a separate class (#2233) (#2239)
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 13:05:46 -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
Bogdan Drutu 8a8799ec9e
Small nit in internal members order (#2232)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-12 16:18:38 -08:00
Bogdan Drutu c8f1f27f07
Remove OpenTelemetryBuilder interface, every implementation will have it's own builder (#2275)
This PR also fixes the DefaultOpenTelemetry builder to be it's own class and not a sub-class.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-12 13:09:58 +09:00
Bogdan Drutu a439ca6da1
Move small internal package under common (#2219)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-09 13:45:10 +09:00
Bogdan Drutu 67b6339c70
Small nits in api packages (#2220)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 18:10:58 -08:00
Bogdan Drutu 7460f92bc8
Remove deprecated methods/classes before 1.0 release (#2205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 11:33:17 -08:00
Bogdan Drutu 26124ad075
Split API packages, move context in the same directory (#2199)
There are some things left to be done:
* Decide if context package should also be opentelemetry-api-context.
* Cleanup internal packages, things that are used by only one artifact should be moved there.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-05 08:33:20 -08:00