jack-berg
34beb4d71c
Deprecate :extensions:aws ( #4862 )
...
* Deprecate :extensions:aws
* Add deprecation notice to README.md
* Include link to new location opentelemetry-java-contrib
2022-11-02 12:16:46 -05:00
Łukasz Monkiewicz
6184e19812
Make description of Samplers Locale independent ( #4887 )
...
* Make description of Samplers Locale independent
* Switch from String.format to concatanation
* Moved description creation to constructor
2022-10-31 12:26:16 -05:00
jack-berg
52c37d56da
Stop publishing opentelemetry-sdk-extension-resources artifact ( #4828 )
2022-10-31 12:25:36 -05:00
jack-berg
db1d0652b2
Decode resource attributes specified via otel.resource.attributes ( #4756 )
2022-10-18 11:45:34 -05:00
dependabot[bot]
88779d3115
Bump wire-compiler from 4.3.0 to 4.4.2 ( #4856 )
...
* Bump wire-compiler from 4.3.0 to 4.4.2
Bumps [wire-compiler](https://github.com/square/wire ) from 4.3.0 to 4.4.2.
- [Release notes](https://github.com/square/wire/releases )
- [Changelog](https://github.com/square/wire/blob/master/CHANGELOG.md )
- [Commits](https://github.com/square/wire/compare/4.3.0...4.4.2 )
---
updated-dependencies:
- dependency-name: com.squareup.wire:wire-compiler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix ProtoFieldsWireHandler
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-10-18 07:52:39 -07:00
jack-berg
99dbcaf3c6
Add support for BatchLogRecordProcessor autoconfiguration ( #4811 )
2022-10-17 14:41:45 -05:00
jack-berg
6fa504df97
Fix broken link ( #4861 )
2022-10-17 13:00:16 -05:00
jack-berg
cc22880bb8
Stop publishing opentelemetry-sdk-extension-aws artifact ( #4830 )
2022-10-14 07:51:17 -05:00
jason plumb
3f4698a536
Ensure done before checking success to help troubleshoot timeout issues ( #4833 )
...
* ensure done before checking success to help troubleshoot timeout issues
* add done check to testDefaultRetryPolicy method as well.
* ensure isDone() before other assertions
2022-10-13 13:13:22 -05:00
jack-berg
3a61673450
Prepare release 1.19.0 ( #4821 )
...
* wip
* Add changelog entry for 1.19.0
* Add new since annotations
* Add late additions to changelog
* PR feedback
* Fix 1.18.0 ref
2022-10-07 09:00:45 -05:00
jack-berg
bd0cf78c39
Ensure GlobalLoggerProvider is set once ( #4804 )
...
* Ensure GlobalLoggerProvider is set once
* Add GlobalLoggerProviderTest
* PR feedback
2022-10-03 13:47:36 -05:00
Bruno Baptista
c37dada000
Add support for new system property otel.sdk.disabled ( #4810 )
...
* Add support for new system property otel.sdk.disabled
* address review comments
2022-10-03 11:51:57 -05:00
jack-berg
7b56506a73
Deprecate opentelemetry-sdk-extension-aws ( #4749 )
2022-10-01 10:08:10 -05:00
jack-berg
3ee7bbd165
Fix ProcessResource directory separator ( #4782 )
...
* Fix ProcessResource directory separator
* spotless
2022-10-01 09:56:15 -05:00
jack-berg
e1519bdd3d
Deprecate opentelemetry-sdk-extension-resources ( #4748 )
2022-10-01 09:54:45 -05:00
jack-berg
a1cf20d1c5
Rename LogProcessor to LogRecordProcessor ( #4772 )
2022-09-26 11:02:49 -05:00
jack-berg
647ed91c15
Rename LogData to LogRecordData ( #4774 )
...
* Rename LogData to LogRecordData
* spotless
2022-09-26 10:30:59 -05:00
jack-berg
9b17be3114
Rename LogExporter to LogRecordExporter ( #4773 )
2022-09-26 09:57:30 -05:00
jack-berg
f7317c6e8d
Split out logs API ( #4764 )
2022-09-22 13:23:52 -05:00
jack-berg
6209109e0a
Change LogEmitter to Logger, LogEmitterProvider to LoggerProvider ( #4721 )
2022-09-16 13:41:30 -05:00
Mateusz Rzeszutek
6c11793bd2
Add experimental ConditionalResourceProvider interface ( #4731 )
...
* Add experimental ConditionalResourceProvider interface
* Add tests
2022-09-08 13:10:43 -05:00
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
Felix Scheinost
b5ef538e5e
Improve detection of resource attributes on ECS ( #4574 )
...
* Improve detection of resource attributes on ECS
This improves the detection of resource attributes on ECS by fetching ECS metadata from `ECS_CONTAINER_METADATA_URI` or `ECS_CONTAINER_METADATA_URI_V4`.
Previously only `CONTAINER_NAME` and `CONTAINER_ID` id were set.
Now we set:
- CONTAINER_ID
- CONTAINER_NAME
- AWS_ECS_CONTAINER_ARN
- CONTAINER_IMAGE_NAME
- CONTAINER_IMAGE_TAG
- aws.ecs.container.image.id
- AWS_LOG_GROUP_ARNS
- AWS_LOG_GROUP_NAMES
- AWS_LOG_STREAM_NAMES
- AWS_ECS_TASK_ARN
- AWS_ECS_TASK_FAMILY
- AWS_ECS_TASK_REVISION
Especially AWS_LOG_GROUP_ARNS is important so that connection of traces to logs works OOTB on X-Ray.
* Change „24“ to „26“ in fixtures for consistency
`CONTAINER_NAME` and `AWS_ECS_TASK_REVISION` should match
* Implement a few more attributes, fix ARNs
This commit adds implementations for the `aws.ecs.launchtype`
and `aws.logs.stream.arns` attributes, as well as fixing
the generation of log group ARNs.
* EcsResource: Record log group without trailing :*
Both with and without trailing `:*` are valid formats but there is a bug in the OpenTelementry collector which can’t handle the trailing `:*` (for now) (see https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/13702 )
So remove addition of the trailing `:*` for now.
Co-authored-by: Michele Mancioppi <michelem@lumigo.io>
2022-09-08 10:20:58 -05:00
jack-berg
def1c85b60
Drop opentelemetry-sdk-extension-jfr-events, which moved to opentelemetry-java-contrib ( #4703 )
2022-08-25 08:46:45 -05:00
jack-berg
926b57143a
Merge trace and metric incubator ( #4705 )
2022-08-24 09:59:42 -05:00
jack-berg
6eea0389af
Move :sdk-extensions:zpages to :sdk-extensions:tracing-incubator ( #4694 )
2022-08-17 15:41:07 -05:00
jack-berg
b979ea1427
Allow logs to be mutated by LogProcessor ( #4643 )
...
* Allow logs to be mutated by LogProcessor
* wip
* Improve test coverage
2022-08-11 15:52:22 -05:00
jack-berg
77be2e0136
Break out :exporters:common module ( #4575 )
...
* Break out :exporters:common module
* Comment out readme links
* spot
2022-08-08 08:28:24 -05:00
Mateusz Rzeszutek
91bd17e09b
Add AutoConfigurationCustomizer#addPropertiesCustomizer() extension p… ( #4608 )
...
* Add AutoConfigurationCustomizer#addPropertiesCustomizer() extension point
* jApiCmp
* Update sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
* since
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-08-07 15:57:33 -05:00
jack-berg
5def2f7fb2
Always pull ghrc.io/open-telemetry/opentelemetry-java/* images ( #4656 )
...
* Always pull ghrc.io/open-telemetry/opentelemetry-java/* images
* Unused import
* Add error logging to collector
* unused imports
* spot
* revert error logging
2022-08-07 15:56:07 -05:00
jack-berg
35680960cb
Fix autoconfigure documentation ( #4658 )
2022-08-07 15:55:36 -05:00
jack-berg
21abfa2b57
Add ConfigurableLogExporterProvider ( #4636 )
2022-07-28 15:04:45 -05:00
Mateusz Rzeszutek
467a275825
Add ordering to autoconfigure SPIs ( #4609 )
...
* Add ordering to autoconfigure SPIs
* jApiCmp
* comments
2022-07-27 17:37:02 -05:00
jack-berg
a8086498b1
Add TestLogData, remove public LogDataImpl and LogDataBuilder from log SDK ( #4635 )
...
* Add TestLogData, remove public LogDataImpl and LogDataBuilder from log sdk
* pr comment
2022-07-27 13:15:25 -05:00
jack-berg
2ef73c83af
Support aggregation arguments for view file configuration ( #4588 )
...
* Support aggregation arguments for view file configuration
* Extract getBucketBoundaries function
2022-07-21 09:41:43 -05:00
jack-berg
7a2a5b379d
Update autoconfigure docs for multiple exporters ( #4619 )
2022-07-20 09:39:48 -05:00
jack-berg
d84a111273
Cache HttpUrl for exporters that use OkHttp ( #4616 )
2022-07-19 10:04:54 -05:00
jack-berg
d2a8304b9b
Otlp exporter default aggregation ( #4557 )
...
* Add default aggregation selector option to OTLP metric exporters
* change compose to with
2022-07-05 10:21:04 -05:00
Trask Stalnaker
6034c12650
Add javadoc about autoconfigure pitfall ( #4558 )
...
* Add javadoc about autoconfigure pitfall
* more
2022-06-30 09:40:34 -05:00
Mateusz Rzeszutek
4c0cbba5d3
Add hyphen normalization to ConfigProperties ( #4564 )
2022-06-30 09:26:29 -05:00
jack-berg
cb864fd209
Fix metrics incubator docs ( #4567 )
2022-06-29 16:24:57 -05:00
jack-berg
0860b3884b
MetricReader and MetricExporter can determine default aggregation by instrument ( #4472 )
...
* MetricReader and MetricExporter can determine default aggregation by instrument
* Add since annotations
2022-06-28 15:39:26 -05:00
Fabio Massimo Ercoli
bc8f721458
Handle non-String system properties ( #4543 ) ( #4544 )
...
* Test non-string properties (#4543 )
* Handle non-String system properties (#4543 )
* Small cleanups
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-06-22 10:02:48 +09:00
Anuraag Agrawal
852e755eeb
Use OkHttpGrpcExporter unless upstream Channel provided by user ( #4538 )
...
* Use OkHttp-based gRPC exporter unless setChannel is called.
2022-06-17 09:45:03 +09:00
jack-berg
86cc4bc27d
Add some missing since annotations ( #4520 )
2022-06-09 20:41:52 -05:00
jack-berg
b7347f6577
Update dependencies ( #4519 )
...
* Update dependencies
* revert jqf-fuzz to 1.7
2022-06-09 20:41:40 -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
jack-berg
7d80a99846
Add experimental option to disable autoconfigured opentelemetry SDK ( #4489 )
...
* Add experimental option to disable autoconfigured opentelemetry SDK
* Add AutoConfiguredOpenTelemetrySdk#isSdkEnabled()
* Remove isSdkEnabled()
2022-06-06 11:23:14 -05:00
jason plumb
77f5a174d4
Add default getters to ConfigProperties ( #4500 )
...
* add some methods to ConfigProperties to help with defaulting.
* wire up default methods
* javadoc
* bots hate underscores
* leverage primitives to eliminate nullability.
* remove null check (call doesn't return null per javadoc)
* address PR comments.
* move internal method out of public interface
* roll back fallback
* rename util class
* use assertj
* spotless
* coverage
* Update sdk-extensions/autoconfigure/src/test/java/io/opentelemetry/sdk/autoconfigure/ConfigPropertiesTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* static
* spot(less)
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-06-02 15:48:48 -07:00
jason plumb
83bfb84d14
Migrate to assertj ( #4512 )
...
* migrate from junit/jupiter assertions to assertj in a few remaining places.
* reorder
2022-06-02 13:38:46 -07:00