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
jack-berg
92bd65970e
Merge otlp exporters ( #4499 )
...
* Merge otlp http trace and metric exporters into :exporters:otlp:all
* Merge otlp http exporter into :exporters:otlp:logs
* Artifact descriptions
2022-05-27 19:23:41 -07:00
jack-berg
33d2c22260
Implement general attribute limits ( #4495 )
...
* Implement general attribute limits
* Spotless
2022-05-26 09:25:14 -05:00
Donnerbart
2e5598e492
Add setter for MeterProvider to JaegerGrpcSpanExporterBuilder ( #4487 )
...
* Add setter for MeterProvider to JaegerGrpcSpanExporterBuilder
* Make exporter name configurable for ExporterMetrics
2022-05-24 12:13:48 -07:00
wallezhang
3ed74b6bbc
feat: `otel.metrics.exporter` setting support multiple values ( #4466 )
...
* feat: `otel.metrics.exporter` setting support multiple values
* refactor: Refactor metric reader configuration function
2022-05-20 15:01:05 -05:00
jack-berg
81821296fc
Move ConfigurableMetricExporterProvider to autoconfigure-spi ( #4478 )
2022-05-18 19:17:45 -07:00
jack-berg
d355bf56df
Fix OTEL_EXPORTER_OTLP_CLIENT_KEY docs ( #4474 )
2022-05-17 17:18:32 -07:00
jack-berg
b7b6a75637
Drop reference to OTEL_EXPORTER_LOGGING_PREFIX ( #4462 )
2022-05-12 15:46:19 -05:00
jack-berg
e067223409
Convert tests to from :sdk:metrics-testing to :sdk:testing ( #4444 )
2022-05-09 09:34:09 -05:00
jack-berg
d490f5b5e7
Add AggregationTemporalitySelector functional interface ( #4438 )
2022-05-06 10:03:14 -05:00
Chris Gray
360da3cf9b
Parse 0-probability sampling strategies correctly (fixes: open-telemetry/opentelemetry-java-instrumentation#5899) ( #4421 )
...
* Parse 0-probability sampling strategies correctly (fixes : #5899 )
* Run spotless
* Move default probabilistic strategy to `parseProbabilistic`
2022-05-06 08:29:05 -05:00
jack-berg
605f40b940
Rename MetricReader#flush() to forceFlush() ( #4439 )
2022-05-06 08:26:22 -05:00
Anuraag Agrawal
e999fa0d5a
Some fixes for compilation under java 18 ( #4397 )
2022-04-22 07:43:55 +09:00
jack-berg
2ec053e0fd
Remove old option for specifying temporality ( #4392 )
...
* Remove old option for specifying temporality
* Fix test
2022-04-20 10:11:25 -05:00
jack-berg
45e278a934
Mark metrics components as stable ( #4375 )
2022-04-13 11:44:17 +09:00
jack-berg
44afb133bd
Add changelog entry for 1.13.0 release ( #4355 )
...
* Add changelog entry for 1.13.0
* PR feedback
2022-04-08 13:35:24 -05:00