* 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
* Update semantic and resource attributes for spec v0.15.0
* explicitly exclude resource attributes
* remove more resources, include deprecated tags and attributes
* 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
* 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.
* 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>
* 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>
* 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
* 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>
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>
* 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)
* 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