Commit Graph

18 Commits

Author SHA1 Message Date
John Watson f543fe85f8
Add javadoc to the package-info.java for Sampling (#2694)
* Add javadoc to the package-info.java for Sampling
and update some javadoc for parent-based Samplers.

* Suppress linelength for package-info

* tweak some language, add a link to the spec

* pin the url to a specific SHA

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-02-04 10:56:32 -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 73a59e0e15
Update to latest semantic conventions. (#2452)
* Update to latest semantic conventions.

* Update buildscripts/semantic-convention/generate.sh

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

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-08 11:06: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 be42c3d011
Remove formatting checks from checkstyle (#2418) 2021-01-04 07:57:58 -08:00
Anuraag Agrawal 44186bc110
Suppress checkstyle javadoc check from non-main source sets. (#2307)
* Suppress checkstyle javadoc check from non-main source sets.

* Update checkstyle-suppressions.xml
2020-12-15 09:39:33 -08:00
Frank Spitulski c108f62158
fix(semantic-attributes): update to dec 14 2020 master (#2302) 2020-12-15 08:42:33 -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
Mateusz Rzeszutek dc91c95e63
Fix buildscripts/semantic-convention/generate.sh script (#2144)
* Fix buildscripts/semantic-convention/generate.sh script

Including:
* update spec version to latest commit
* regenerate SemanticAttributes

* Code review comments

* Reference spec date
2020-12-01 11:18:32 -08:00
Bogdan Drutu e8ba8317fd
Move semantic conventions script to buildscripts (#1998)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 08:30:23 -08:00
Anuraag Agrawal ed169645f7
Migrate to spotless (#1748)
* Use spotless for formatting / license check

* Apply formatting

* README

* Apply to example

* google-java-format 1.8 for now

* google-java-format 1.7 for now (last supporting Java 8)
2020-10-05 16:41:21 +09:00
dengliming 71ba8e1b87
Use the concise license header without the year (#1623)
* Use the concise license header without the year

* Use the concise license header without the year
2020-10-02 22:42:53 +09:00
Nikita Salnikov-Tarnovski 46f0c5f0b7
Extension packages should not use "internal" API package (#1342)
* Extension packages should not use "internal" API package

Add InternalApiProtectionTest which uses ArchUnit to enforce architectural constraints.
This change only verifies that classes in `extensions` packages do not use classes in `internal` package of API module.

Test was added into `opentelemetry-all` module because the latter depends on all other submodules
and therefore sees all classes in the project.

* Polish

* Polish
2020-06-18 09:10:18 -07:00
Bogdan Drutu 5bef5615d7
Update checkstyle to support empty lambdas (#1350)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 06:47:58 -07:00
Nikita Salnikov-Tarnovski a98aa54204
Add .editorconfig file with google-java-format compatible options (#1136)
* Add .editorconfig file with google-java-format compatible options

* Add an example of pre-commit hook
2020-04-27 08:42:59 -07:00
Bogdan Drutu ca0ec9dfa8
Replace everywhere OpenConsensus with OpenTelemetry (#244)
* Replace everywhere OpenConsensus with OpenTelemetry

* Fix javadoc references.

* Update javadoc exclude in the api.
2019-05-02 13:46:04 -07:00
Bogdan Drutu 9cb3ad5eb7 Add initial OpenCensus API. 2019-03-26 16:02:25 -07:00
Bogdan Drutu afaef31350 Setup gradle, checkstyle, errorprone, google-java-format, jmh and first two artifacts context and api. 2019-02-26 10:17:30 -08:00