Commit Graph

41 Commits

Author SHA1 Message Date
wzy531a aea98ba885
Fix container detection fails in k8s with containerd v1.5.0+ environments (#4733)
* pr with issue#4730

* PR for issue#4730

Signed-off-by: wuzhaoyin <1449259282@qq.com>

* Annotation adjustment

Signed-off-by: wuzhaoyin <1449259282@qq.com>

* fix code owner review required fail

Signed-off-by: wuzhaoyin <1449259282@qq.com>

Signed-off-by: wuzhaoyin <1449259282@qq.com>
2022-09-08 11:23:45 -05:00
jack-berg 29f274e1a8
Handle ContainerResource edge case (#4518)
* Handle ContainerResource edge case

* Simplify container id logic

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Start from one character after last '-'

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-06-07 13:35:34 -05: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 dfb4a74ac5
Update errorprone (#4048) 2022-01-06 11:33:00 +09:00
jason plumb 4e38ab308b
handle multiple hyphens in prefix (#3833) 2021-11-06 19:16:09 -07:00
Anuraag Agrawal 29cc44ed08
Update to Gradle 7.2 (#3572)
* Update to Gradle 7.2

* Only block properties we use in security manager instead of all of them.
2021-09-02 13:17:29 +09:00
Anuraag Agrawal 98fdf9b4bc
Move ConfigProperties / ConfigurationException to SPI package and consistently pass ConfigProperties (#3558) 2021-08-31 12:55:36 +09:00
jack-berg 4a945e63e3
Add gradle ktlint spotless config to all projects (#3543) 2021-08-25 08:36:17 +09:00
jack-berg 58c16a9133
Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07: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
jason plumb cb5198ba99
encapsulate Resource.getAttribute() to help with some law of Demeter violations. (#3468) 2021-08-12 09:06:31 +09:00
Trask Stalnaker 60c3c5ca0c
Format build.gradle.kts files (#3427) 2021-07-29 13:21:38 +09:00
lo-jason 2cb461d4ae
#3308 Support adding container.id to resource metadata (#3321)
* Support adding container.id to resource metadta

* Address review comments

* Address review feedback

* Change containerResource to cached Resource factory

* Make method private

* Change to Paths and Files

* Fix bad merge and change regex

* Remove debug code, remove regex

* Add nullable annotation

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-21 16:40:57 -07:00
Anuraag Agrawal a36cc90f90
Fix tests on Java 16+ and add 16/17-ea to CI. (#3370)
* Fix tests on Java 16 and add to CI.

* JDK for mockito

* Java 17
2021-07-08 13:41:29 +09:00
Anuraag Agrawal ce9c8854c7
Extract publishing and animalsniffer plugins. (#3334) 2021-06-22 08:23:16 +09:00
John Watson df1f47d929
Add the OpenTelemetry schema URL to the Resource. (#3319)
* Add the OpenTelemetry schema URL to the Resource.

* A few cleanups from PR review.
2021-06-18 08:52:56 -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
Piotr Glazar 8722677e5c
Use JDK 10 API to fetch process pid (#3212) 2021-05-11 08:18:57 -07:00
John Watson 2a002f20fa
Make the EnvironmentResource public. (#3200) 2021-05-06 16:50:07 -07:00
John Watson aba088b135
Update the semantic convention classes for spec v1.3.0 (#3202) 2021-05-06 10:25:28 +09:00
YuDong Tang b3860d4e1e
add host.name as default attribute by add HostResourceProvider (#3162)
* add HostResourceProvider

* add host.arch
2021-04-16 08:12:43 -07:00
Prathik Kaliyambath 5f32df7b9b
fixed docs (#3028) 2021-03-13 10:36:04 -08:00
Anuraag Agrawal 9997dee68e
Don't use singleton in resource test (#2970) 2021-03-03 13:42:33 +09:00
Bogdan Drutu 75ea07e597
Fix more api dependencies which should be implementation (#2919)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-23 12:20:06 -08:00
Anuraag Agrawal dc4de41cec
Add tests for resources with securitymanager enabled. (#2873) 2021-02-18 09:14:58 -08:00
Anuraag Agrawal 0730a9e79c
[Breaking Change] Move ResourceProvider SPI to autoconfigure module (#2837)
* autoconfigure

* Finish

* Refactor

* Fix OsResource to use empty

* Fix BeanstalkResource to use empty

* Fix ResourceTest to use empty

* Fix Ec2Resource to use empty

* Fix EcsResource to use empty

* Fix ProcessRuntimeResource to use empty

* Fix ProcessRuntimeResource to use empty

* Fix EksResource to use empty

* Fix LambdaResource to use empty

* Fix ProcessResource to use empty

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-02-17 12:41:07 -08:00
Anuraag Agrawal 3264ae9e5f
Enable animal sniffer for resources artifact. (#2819) 2021-02-15 15:40:17 -08:00
Anuraag Agrawal e4886283a7
Migrate sdk-extensions to kts. (#2814) 2021-02-15 12:21:10 +09: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
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 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
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
Anuraag Agrawal 8a369e3695
Make public src/main classes final where possible. (#2309)
* Make public src/main classes final where possible.

* methods

* Spot
2020-12-16 13:13:04 +09:00
Anuraag Agrawal 4762c6a25d
Remove ReadableAttributes (#2187)
* Remove ReadableAttributes

* Don't rewrite history

* Drift
2020-12-03 11:26:24 -08:00
Anuraag Agrawal d31995f75d
Add code coverage for OS resources. (#2167)
* Add code coverage for OS resources.

* Fix assertion
2020-12-01 11:04:01 -08:00
Mateusz Rzeszutek 2130644667
Support process.runtime.* resource attributes (#2143)
* Support process.runtime.* resource attributes

* Code review comments

* Add process.runtime.* attributes to README.md
2020-11-30 10:12:15 -08:00
Anuraag Agrawal b5efbcf187
Move builders to top level. (#1958)
* Move builders (and TraceStateEntry) to top level.

* Revert Entry

* Fix and more revert

* Drift
2020-11-10 14:50:37 +09:00
Anuraag Agrawal 9c4c52dfee
Switch animal sniffer signature to gummy bears. (#2015) 2020-11-06 08:56:26 +09:00
Bogdan Drutu 2dfc417e2d
Rename package name for sdk extensions to singular extension (#2002)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 12:26:43 -08:00
Anuraag Agrawal 390d92e49a
Rename folder names from underscore to hyphen (#1968) 2020-11-03 14:46:40 +09:00