Commit Graph

50 Commits

Author SHA1 Message Date
jack-berg 1bd41e2b79
Remove semconv (#5807) 2023-09-27 14:42:04 -05:00
renovate[bot] 91713f440c
Update dependency checkstyle to v8.45.1 (#5735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-08-21 16:44:11 -05:00
jack-berg 9bc34d7621
Update to semconv 1.20.0 (#5497) 2023-06-02 12:35:47 -07:00
dependabot[bot] b14bed8d89
Bump com.diffplug.spotless:spotless-plugin-gradle from 6.18.0 to 6.19.0 (#5469)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-05-31 09:56:15 -07:00
Donnerbart 85fb3906e0
Add missing links to deprecated constants in SemanticAttributes (#5406) 2023-04-27 07:29:40 -05:00
Liudmila Molkova 188210bdba
Update semconv to 1.19.0 and related build tool changes (#5311)
* Generate semconv 1.19.0 with new build-tools

* update code to use new user agentattribute name

* changelog

* add deprecated attributes

* add old deprecated attributes

* cleanup
2023-03-30 08:34:48 -07:00
jack-berg 358ad6cba1
Update semconv to 1.18.0 (#5188) 2023-02-09 15:25:34 -06:00
John Watson e25120ad08
Update the semantic conventions to v1.17.0 (#5134)
* Update the semantic conventions to v1.17.0

* add a few more deprecated items
2023-01-18 18:24:43 -08:00
John Watson ea500962d6
update generated semantic convention classes to v1.16.0 (#5033) 2022-12-09 08:01:28 -06:00
John Watson ea7883be20
Update semantic and resource attributes for spec v0.15.0 (#4938)
* Update semantic and resource attributes for spec v0.15.0

* explicitly exclude resource attributes

* remove more resources, include deprecated tags and attributes
2022-11-12 15:06:49 -08:00
Marcin Grzejszczak a3551e7c45
Added info what are the new semantic attributes to be used (#4840)
* Added info what are the new semantic attributes to be used 

Related change - 0b45213858

* Regenerated the code

* Fixed . to #
2022-10-18 11:44:47 -05:00
John Watson 3456e6beed
update to semantic conventions version 1.13.0 (#4766)
* update to semantic conventions version 1.13.0

* add a couple more deprecated items

* add deprecated constants

* add another deprecated item
2022-09-30 16:31:27 -07:00
jack-berg c72a01ef1b
Update to semconv 1.12.0, build tools 0.8.0 (#4637) 2022-07-27 09:03:13 -05:00
John Watson 6266b16b0f
Update the semantic convention constants to v1.9.0 (#4174) 2022-02-14 18:38:26 -08:00
Anuraag Agrawal 47f7c38ef5
Enable loggers in all tests via slf4j. (#4126)
* Route all test jul logging through slf4j.

* Cleanup and more suppressions
2022-02-02 14:43:25 +09:00
Anuraag Agrawal 03c41ec940
Add a testing-internal module and functionality to SuppressLogger for… (#4130)
* Improve behavior of some tests (#4123)

* Optimize

* Fix logging.properties

* Clean
2022-02-01 16:04:39 +09:00
John Watson 47ccd6076b
update semconv to v1.8.0 (#3890)
* update semconv to v1.8.0

* add back 2 items that were removed from the spec

* tweak the deprecated items javadoc
2021-11-18 16:25:16 -08:00
John Watson c7c352b403
update the semconv to v1.7.0 and the build tools to 0.7.0 (#3686) 2021-10-08 12:51:38 +09:00
Anuraag Agrawal 0cef3f79b5
Migrate Jaeger exporter to marshaler (#3625)
* Migrate Jaeger exporter to marshaler

* Remove Jaeger protos from public API

* Separate our jaeger-proto artifact.

* Move

* Cleanups

* Spot
2021-09-21 07:40:15 -07:00
Anuraag Agrawal 083d91a498
Migrate MarshalerUtil to an abstract class (#3573)
* Replace MarshalerUtil with Serializer abstraction to also implement a JSON version.

* Continue

* Finish

* Finish

* Clean

* ProtoFieldInfo

* Precompute tags

* Constants

* More pretag
2021-09-06 13:08:42 +09:00
John Watson 193bd4b267
Update to Semantic Conventions v1.6.1 (#3552)
And, remove the generator template hacks for 1.6.0
2021-08-25 18:31:34 -07:00
John Watson bb46b0c0a4
Update the semantic conventions to 1.6.0 (#3524) 2021-08-23 09:43:18 -07:00
Anuraag Agrawal 86e7d127e2
Vendor in required bits of CodedOutputStream and remove protobuf-java… (#3519)
* Vendor in required bits of CodedOutputStream and remove protobuf-java dependency

* License headers

* Backfill

* Buffer size
2021-08-23 12:16:50 +09:00
John Watson a081b0283e
Further work on cleaning up the auto-generated javadoc for SemanticAttributes and ResourceAttributes (#3398) 2021-07-19 08:28:49 -07:00
John Watson 3925b50cc9
Tweak the semantic convention code generation. (#3394)
* Tweak the semantic convention code generation.
In particular, to better support links and html in the docs.

* small simplification of the template
2021-07-13 14:39:18 -07:00
John Watson 57bd952756
Update the semconv constants to v1.5.0 (#3381)
* Update the semconv constants to v1.5.0
Also, tweak our checkstyle settings to allow long markdown-style links.

* remove linelength checkstyle checks, since spotless already formats for us
2021-07-09 09:31:17 -07:00
John Watson 81e2777114
Update the semconv to spec v1.4.0 (#3298)
* Update the semconv to spec v1.4.0

* Add the schema URL to the generated files.

* amend the CHANGELOG.md entry to add the schema url addition
2021-06-09 17:27:13 -07:00
John Watson aba088b135
Update the semantic convention classes for spec v1.3.0 (#3202) 2021-05-06 10:25:28 +09:00
Armin Ruech c28d17aaea
Update semantic convention constants generator script and template (#3047)
* Update semantic convention constants generator script, template and spec reference

The template was updated to reflect the changes introduced in otel/semconvgen v0.3.0 and v0.3.1.
The script was updated to pin the version of the otel/semconvgen image, otherwise incompatible updates would break it.

Fixes #3042.

* ./generate.sh

* Update template according to open-telemetry/build-tools#41

* ./generate.sh

The template was updated to use the correct base definitions, so the Javadoc for some attributes changed (the ones for `rpc.*`, for example).
This also changed the ordering but it is still reproducible.
2021-04-19 09:57:33 -07:00
Harshita Srinivas 877dc7f4a2
Modification of enum semantic attributes (#3128)
* rebasing

* removed class generating enums and modified return type

* reverted return type and removed the if check

* one script fix, and run the generator to re-gen the classes.

* undo unrelated change

Co-authored-by: jkwatson <jwatson@splunk.com>
2021-04-13 08:04:54 -07:00
John Watson 7773a71417
Semantic Conventions: use only a compatible version of the tools image (#3144) 2021-04-09 21:12:25 -07:00
John Watson 84052a8ce9
Update the SemanticAttributes and ResourceAttributes for specification v1.1.0 (#3016)
Note: this contains breaking changes to ResourceAttributes.
2021-03-12 07:58:48 -08:00
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