dependabot[bot]
76f7a96029
Bump spotless-plugin-gradle from 6.12.0 to 6.12.1 ( #5076 )
...
* Bump spotless-plugin-gradle from 6.12.0 to 6.12.1
Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless ) from 6.12.0 to 6.12.1.
- [Release notes](https://github.com/diffplug/spotless/releases )
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md )
- [Commits](https://github.com/diffplug/spotless/compare/gradle/6.12.0...gradle/6.12.1 )
---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-plugin-gradle
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix spotless
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>
2023-01-03 13:15:22 -06:00
jack-berg
ad2013ffbd
Add toString to SdkMeter, SdkObservableInstrument, AbstractInstrumentBuilder ( #5072 )
2023-01-01 13:49:28 -06:00
jack-berg
17e81063ba
Align exemplar filter names with spec ( #5063 )
...
* Align exemplar filter names with spec
* coverage
* spotless
2022-12-29 11:11:39 -06:00
jack-berg
ece93b77a1
Use ConfigUtil internally ( #5048 )
2022-12-17 16:10:46 -06:00
jack-berg
fdc56b354d
Delete MapCounter alternative histogram implementation ( #5047 )
2022-12-17 15:18:13 -06:00
jack-berg
86853f52dd
Lazily initialize exponential histogram buckets ( #5023 )
2022-12-14 09:43:03 -06:00
OpenTelemetry Bot
ba42ce858a
Update version to 1.22.0 ( #5034 )
...
* Update version to 1.22.0
* Fix version-dependent test
Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-12-09 13:57:27 -06:00
jack-berg
ca18354115
Prepare for 1.21.0 release ( #5028 )
...
* Update bom to point to opentelemetry-extension-aws:1.20.1
* Update changelog for 1.21.0 release
* Add missing since annotations
* Spotless
* Include 1.16.0 semantic convention update in changelog
* Add attribute assertions change
2022-12-09 13:22:51 -06:00
jason plumb
79a601d7d7
Attribute assertions should always contain the attr key ( #5027 )
...
* improve attribute assertions to alwyas contain the attr key
* spotless
* change assertion
* Update sdk/testing/src/test/java/io/opentelemetry/sdk/testing/assertj/AttributeAssertionTest.java
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
* fix build
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-12-09 12:51:07 -06:00
jack-berg
738d9988ae
Stop extra copy of exponential histogram buckets ( #5020 )
2022-12-07 09:19:15 -06:00
jack-berg
e73232898f
Add ExponentialHistogramIndexerBenchmark ( #4989 )
2022-12-01 09:20:19 -06:00
jack-berg
14b64fc8bc
Add histogram collection benchmark ( #4912 )
2022-11-30 13:30:22 -06:00
Łukasz Monkiewicz
ac2ba4a2df
Adjustment of behaviour of hasXAttributesSatisfying and hasXAttribute… ( #4882 )
...
* Adjustment of behaviour of hasXAttributesSatisfying and hasXAttributesSatisfyingExactly assertions
* Cleanup
* Additional test coverage for new assertion method
* Added javadoc on assertions
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-11-29 13:47:15 -06:00
jack-berg
5fb50c1d5e
Add toString implementation to various propagator components ( #4996 )
2022-11-29 10:37:31 -06:00
Ben Roling
7dd5c1ccd7
Add auto-configure support for logging-otlp ( #4879 )
...
* Add autoconfigure support for logging-otlp
* Add NotOnClasspath tests
* Fix formatting
* Declare logging-otlp as experimental, add unit test
* Spotless
Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-11-28 11:15:31 -06:00
jack-berg
c2947bf046
Add toString implementation to various log SDK components ( #4979 )
2022-11-26 09:10:35 -06:00
jack-berg
bd8b5650ac
Fix concurrent modification exception in ComponentRegistry ( #4951 )
...
* Fix concurrent modification exception in ComponentRegistry
* Reduce number of threads and iterations
2022-11-15 11:15:50 -06:00
jack-berg
fa3d292879
Fix misleading javadoc ( #4946 )
2022-11-13 08:53:42 -06:00
Ragnar Rova
36adb27cf8
Allow SDK to run in environments prohibiting use of sun.misc.Unsafe ( #4902 )
...
Some applications run under strict java.security permissions
which do not allow access to sun.misc.Unsafe.
BatchSpanProcessor uses Unsafe via jctools, but has a fallback to
ArrayBlockingQueue. Extending that fallback rule to cover
java security exceptions as well.
Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-11-09 17:35:33 -06:00
jack-berg
ef076c2880
Fix LogsBenchmarks ( #4929 )
2022-11-09 16:54:18 -06:00
jack-berg
b60f4e20b8
Add context argument to LogRecordProcessor#onEmit ( #4889 )
...
* Add context argument to LogRecordProcessor#onEmit
* Change argument order
2022-11-09 11:59:06 -06:00
jack-berg
f8a4d81e24
Optimize log hot path ( #4913 )
...
* ComponentRegistry accepts name, version, schemaUrl instead of InstrumentationScopeInfo
* Fix comment
2022-11-08 17:05:00 -06:00
jack-berg
85bae88e1c
Add benchmark for log sdk ( #4891 )
2022-11-02 13:10: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
21d55971b7
Add zero bucket boundary to default explicit bucket histogram ( #4819 )
2022-10-25 14:26:08 -05:00
Michal Korzeniewski
5ac1cef1e8
Add toString method to AbstractInstrument ( #4883 )
...
* Add toString method to AbstractInstrument
* add test for toString method
* use hasToString assertion for toString test
2022-10-25 13:24:48 -05:00
Marcin Grzejszczak
9a1996c6c1
Adds Graal hints for the shaded dependencies ( #4832 )
...
* Adds Graal hints for the shaded dependencies
* Moved the file to the proper location
* Added Graal VM Github Action build
* Polish
* Updated graal plugin
* Updated graal plugin to 0.9.14
* Updated graal native plugin
* Applied changes following the review
2022-10-18 13:29:56 -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
03009ce006
Lower exclusive exponential histogram bounds ( #4700 )
...
* Switch exponential histograms to use lower exclusive boundaries
* Cache ExponentialHistogramIndexers
* Update javadoc to reflect lower exlusive boundaries
* Spotless
* Fix typo
* Add tests and stop rounding subnormal values
* spotless
* Add explanatory comments
2022-10-06 15:02:08 -05:00
jack-berg
5fee9b7e95
Suppress logs in logger tests ( #4806 )
2022-10-03 11:13:01 -05:00
jack-berg
01a07b51a1
Add event API ( #4781 )
...
* Add event API
* Log when emitting event without domain, add javadoc example to Logger
2022-09-27 17:39:33 -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
jack-berg
a50ceb3959
Implement dropped attribute count in logs ( #4697 )
...
* Implement dropped attribute count in logs
* PR feedback
* PR feedback
2022-09-16 10:49:06 -05:00
jack-berg
eec0225e37
Changelog 1.18.0 ( #4737 )
...
* Add since annotations
* Prepare changelog for 1.17.0 release
* Spotless
* PR feedback
* Spotless
2022-09-09 13:44:23 -05:00
jack-berg
928d112c7d
Revert histogram buckets ( #4736 )
...
* Revert "Restore prior histogram defaults (#4717 )"
This reverts commit 160af1c480 .
* Revert "Update bucket hist defaults to match spec (#4684 )"
This reverts commit 8445642052 .
2022-09-08 11:23:18 -05:00
Mateusz Rzeszutek
169554bb50
Add AttributesAssert#doesNotContainKey() ( #4723 )
...
* Add AttributesAssert#doesNotContainKey()
* jApiCmp
* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/AttributesAssert.java
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-08-25 20:05:14 -07:00
jack-berg
160af1c480
Restore prior histogram defaults ( #4717 )
...
* Add property for configuring legacy explicit bucket histogram bucket boundaries
* Add clarifying comment
* Spotless
2022-08-25 14:41:46 -05:00
jack-berg
2bc88f45c6
Deprecate multi argument InstrumentationScopeInfo create method ( #4710 )
...
* Deprecate multi argument InstrumentationScopeInfo create method
* PR feedback
2022-08-24 13:35:31 -05:00
jason plumb
8445642052
Update bucket hist defaults to match spec ( #4684 )
...
* udpate default histogram bucket boundaries
* spotless
2022-08-24 12:59:29 -05:00
jack-berg
c8e4fd4d9b
Fix log sdk module name ( #4716 )
2022-08-24 10:00:02 -05:00
jason plumb
3a802305dc
return early if merging empty resource ( #4713 )
2022-08-23 12:38:25 -05:00
jack-berg
d0c6cd4480
Extend InstrumentationScopeInfo with scope attributes ( #4696 )
...
* Extend InstrumentationScopeInfo with scope attributes
* Add InstrumentationScopeInfoBuilder
2022-08-22 12:26:54 -05:00
Bogdan Drutu
b5d0d08ad8
Fix HistogramScaleBenchmark, use the right ThreadState, clarify difference ( #4691 )
...
* Fix HistogramScaleBenchmark, use the right ThreadState, clarify difference
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update sdk/metrics/src/jmh/java/io/opentelemetry/sdk/metrics/internal/aggregator/HistogramScaleBenchmark.java
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
* Update HistogramScaleBenchmark.java
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
2022-08-19 09:14:20 -05:00
Bogdan Drutu
bb57442cbf
Remove unnecessary code from metrics sdk ( #4688 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-08-17 11:09:15 -05:00
jack-berg
e11829778a
Use NoopLogEmitterBuilder when no log processors are registered ( #4672 )
2022-08-11 16:16:53 -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
Maksym Ochenashko
7d01751e01
Update example in `InMemorySpanExporter` ( #4644 )
...
The current example is out of date and does not compile.
2022-07-28 08:20:17 -07:00
jack-berg
facbf4fb9e
Add default implementations for getInstrumentationScopeInfo methods ( #4640 )
2022-07-27 17:54:29 -05:00
jack-berg
659a7930bd
Move AttributesMap to :sdk:common ( #4641 )
2022-07-27 17:08:40 -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
9c3a98c90e
Add changelog entry for 1.16.0 ( #4603 )
...
* Add changelog entry for 1.16.0
* Change heading to ## Unreleased
2022-07-12 21:02:00 -05:00
Mohit Palriwal
aa873a05be
Added a static method "drain" under JcTools with a generic consumer ( #4582 )
...
* Added a static method "drain" under JcTools with a generic consumer
* Rename spanT to T
* Update sdk/trace-shaded-deps/src/main/java/io/opentelemetry/sdk/trace/internal/JcTools.java
* Rename Test methods
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-07-08 15:30:35 +09: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
jack-berg
160b30a16a
Fix ConcurrencModificationException in BatchSpanProcessorTest ( #4568 )
2022-06-29 17:03:52 -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
HaloFour
31be1dcc3f
Add helper to SpanDataAssert to assert that span status satisfies a condition ( #4469 )
...
* Add helper to SpanDataAssert to assert that span status satisfies a condition
* Copypasta fail
* Add StatusDataAssert with assertion helpers for validating the exporter span status
* PR Feedback
Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-06-23 12:44:18 -07:00
jack-berg
ccfc9ea918
Tighten up exponential histogram implementation ( #4536 )
2022-06-16 11:20:23 -05: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
d9c8e709e0
Tighten up metrics sdk javadoc ( #4508 )
2022-06-03 13:38:53 -05: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
60cc5f452a
Merge otlp grpc trace and metric exporter into :exporters:otlp:all ( #4494 )
2022-05-27 10:12:45 -05:00
jack-berg
4a8850cc64
Improve metrics API javadoc ( #4493 )
...
* Improve metrics API javadoc
* Fix typo
* Switch to Title Case for instrument names
* Add @since annotations
2022-05-27 10:02:02 -05:00
jack-berg
de824dc93a
Add batch callback API ( #4376 )
...
* Add batch callback API
* Update API to accept varargs of instruments
* Add more tests
* Add default API implementations, more test coverage
* PR feedback
2022-05-25 12:50:09 -05:00
jack-berg
f592bf54e4
Drop outdated metrics sdk readme ( #4476 )
2022-05-17 20:15:57 -07:00
jack-berg
b98ce55cd0
Fix reporting intervals for delta readers ( #4437 )
2022-05-16 11:50:54 -05:00
jack-berg
8659a82583
Fix metric sdk when multiple readers are present ( #4436 )
...
* Fix metric sdk when multiple readers are present
* Merge DeltaMetricStorage into DefaultSynchronousMetricStorage
2022-05-13 12:50:13 -05:00
jack-berg
078d55abe5
Add SdkMeterProvider toString method ( #4464 )
...
* Add SdkMeterProvider toString method
* Fix build
* Ignore null values in InstrumentSelector / View #toString()
2022-05-13 11:52:04 -05:00
jack-berg
0d234f56c9
Add metrics to OpenTelemetryRule and OpenTelemetryExtension ( #4459 )
...
* Add metrics to OpenTelemetryRule and OpenTelemetryExtension
* Clear metrics, respond to PR feedback
2022-05-13 10:06:05 -05:00
jack-berg
bf0f6bfb16
Add experimental method to reset SdkMeterProvider ( #4460 )
2022-05-12 10:28:42 -05:00
jack-berg
bc6be63871
Update to otlp proto 0.17.0 ( #4452 )
2022-05-11 09:57:45 -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
89c6323fff
Move InMemoryMetricReader and InMemoryMetricExporter to :sdk:testing ( #4442 )
...
* Move InMemoryMetricReader and InMemoryMetricExporter to :sdk:testing
* Move tests
2022-05-06 20:00:11 -05:00
jack-berg
d490f5b5e7
Add AggregationTemporalitySelector functional interface ( #4438 )
2022-05-06 10:03:14 -05:00
jack-berg
848c073231
Refactor exemplars to reduce code duplication ( #4430 )
...
* Refactor exemplars to reduce code duplication
* Add comments to ReservoirCell
2022-05-06 08:27:39 -05:00
jack-berg
605f40b940
Rename MetricReader#flush() to forceFlush() ( #4439 )
2022-05-06 08:26:22 -05:00
Anuraag Agrawal
2bc8178dce
Split exemplar assertion into double / long ( #4432 )
...
* Split exemplar assertion into double / long
* Merge
2022-05-06 14:33:57 +09:00
Anuraag Agrawal
bfb39f42d4
Remove Data from metric assertion class names ( #4433 )
2022-05-05 10:47:26 -05:00
jack-berg
04617c3550
Default unit is blank instead of 1 ( #4431 )
2022-05-05 10:34:26 -05:00
Lauri Tulmin
3f2317fdac
Add hasSpansSatisfyingExactlyInAnyOrder ( #4427 )
...
* Add hasSpansSatisfyingExactlyInAnyOrder
* address review comment
* address review comment
2022-05-03 17:25:47 +09:00
Lauri Tulmin
16be81aed8
Apply attribute limits to exception events ( #4423 )
2022-04-28 16:12:35 -05:00
Anuraag Agrawal
ee4d771142
Migrate sum, histogram, summary assert to stable testing. ( #4419 )
...
* Migrate sum, histogram, summary assert to stable testing.
* Coverage
2022-04-28 12:39:29 +09:00
Lauri Tulmin
0940f6405a
Revert PeriodicMetricReader logging level change ( #4414 )
2022-04-25 09:36:39 -07:00
jack-berg
e479f15746
Add exponential histogram aggregation ( #4406 )
...
* Add ExponentialHistogramAggregation
* Rename DoubleHistogramAggregator to DoubleExplicitBucketHistogramAggregator
* PR feedback
2022-04-22 19:51:08 -05:00
Anuraag Agrawal
173a0c27fd
Have long aggregators export long exemplars ( #4403 )
...
* WIP exemplar
* Have long aggregators export long exemplars
* Fix
2022-04-22 11:18:47 +09:00
wallezhang
f36785f676
fix: fix BatchSpanProcessor with non-runtime exception ( #4402 )
...
* fix: fix BatchSpanProcessor worker thread is killed by non-runtime exception
* refactor: Propagate exception if fatal
* test: Add unit test for exporter throwing a non-runtime exception
2022-04-22 07:57:02 +09:00
Anuraag Agrawal
e999fa0d5a
Some fixes for compilation under java 18 ( #4397 )
2022-04-22 07:43:55 +09:00
Lauri Tulmin
8f7124495f
Decrease logging level for no metric data exported ( #4405 )
2022-04-21 07:53:55 -07:00
Anuraag Agrawal
f464817013
Move gauge assertions into stable testing artifact. ( #4395 )
...
* Move gauge assertions into stable testing artifact.
* Disable publishing of old metrics-testing
2022-04-21 11:31:15 +09:00
jack-berg
98369a5aad
Return noop instrument if name is invalid ( #4383 )
...
* Return noop instrument if name is invalid
* Validate instrument name in default meter
* Use API Usage logger and include stack trace
* Rename methods to check* instead of is*
2022-04-20 13:25:00 -05:00
jack-berg
c2d8f6abd9
Set unit to 1 if invalid ( #4384 )
...
* Set unit to 1 if invalid
* Improve error message, validate unit in DefaultMeter calls
* Fix typos
* Include stack trace
2022-04-19 10:45:55 -05:00
jack-berg
45e278a934
Mark metrics components as stable ( #4375 )
2022-04-13 11:44:17 +09:00
jack-berg
f99fdd8269
Drop deprecated instrumentation library methods from log sdk ( #4374 )
2022-04-11 13:26:38 -05:00
jack-berg
e7d5a97f88
OTLP metric exporter accepts aggregation temporality function ( #4340 )
...
* OTLP metric exporter accepts aggregation temporality function
* Spotless
2022-04-08 07:54:04 -05:00
Anuraag Agrawal
d78cadabaa
Update errorprone ( #4346 )
2022-04-08 08:12:57 +09:00
jack-berg
0b94400914
Another round of log suppression ( #4342 )
...
* Another round of log suppression
* Suppress logs from HttpServerPipelineConfigurator
2022-04-07 11:00:42 -05:00
jack-berg
6692683917
Disallow aggregations for incompatible instruments ( #4338 )
...
* Disallow aggregations for incompatible instruments
* Improve test coverage
* Ignore View if aggregation is incompatible, using default view if no others are configured
2022-04-07 10:55:58 -05:00
jack-berg
a895d7e33c
Add min and max to HistogramPointData ( #4317 )
...
* Add min and max to HistogramPointData
* Add hasMin, hasMax to HistogramPointData instead of @Nullable
* Add javadoc about describing behavior when hasMin / hasMax is false
* Get rid of @Nullable on HistogramAccumulation
2022-04-06 10:41:52 -05:00
jack-berg
8ab4d0aa9c
Remove instrument selector predicates, add instrument name wildcards ( #4331 )
...
* Remove instrument selector predicates, add instrument name wildcards
* Cache name pattern to regex translation
* Use alternative glob match algo, get rid of cache
2022-04-06 09:54:43 -05:00
jack-berg
ddca7f34ba
Ensure callbacks are not called concurrently ( #4328 )
...
* Ensure callbacks are not called concurrently
* Disallow concurrent collections by single reader, disallow concurrent callback invocations by different readers
* Restore lock on CallbackRegistration
* Single lock on MeterSharedState ensures all collections are sequential
2022-04-06 09:53:23 -05:00
jack-berg
423e1a2c54
Refactor MetricReader registration ( #4320 )
2022-03-31 10:13:17 -05:00
jack-berg
725ce32db3
Make setMinimumCollectionInterval package private ( #4310 )
...
* Make setMinimumCollectionInterval package private, centralize experimental utilities
* Default minimum collection interval to zero
2022-03-31 09:49:53 -05:00
HaloFour
6bc06f86ca
Add ExceptionEventData which wraps events that contain exceptions ( #4162 )
...
* Add ExceptionEventData which wraps events that contain exceptions
* checkstyle
* Keep it simple
* Refactor ExceptionEventData to tracing-incubator
* Clean up reflection code, defer and memoize merged attributes
* Move ExceptionEventData back to :sdk:trace under internal package
* Address PR comments
* Add internal package-info
* Add internal package verbiage to ExceptionEventData interface
* Kick CI
2022-03-31 11:46:21 +09:00
jack-berg
7fe1783e10
PMR don't export if metrics collection is empty ( #4315 )
...
* PMR don't export if metrics collection is empty
* Set export available
* Use isEmpty() instead of size() == 0
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-03-29 08:15:48 -05:00
jack-berg
e375bfdde1
Drop deprecations in metrics sdk ( #4301 )
...
* Drop deprecations in metrics sdk
* Retain OtlpGrpcMetricExporterBuilder#setChannel()
2022-03-28 11:30:31 -05:00
jack-berg
80c05a71a3
Fix bad merge ( #4309 )
2022-03-26 17:30:06 +09:00
jack-berg
647ff0db3c
Throw exception if selection criteria selects nothing ( #4300 )
2022-03-25 10:04:34 -05:00
jack-berg
1b7ec8a235
Invoke callbacks once when multiple views are registered ( #4296 )
2022-03-25 10:03:48 -05:00
jack-berg
12fc4b2dda
Drop HistogramPointData utility methods ( #4303 )
2022-03-25 10:03:05 -05:00
jack-berg
21a61e5894
Change MetricExporter getPreferredTemporality to accept InstrumentType ( #4288 )
2022-03-24 11:25:50 -05:00
jack-berg
c4ea1c155e
Refactor view API, make AttributesProcessor internal ( #4277 )
...
* Switch View and ViewBuilder to classes
* Make AttributesProcessor an empty interface, move content to AbstractAttributesProcessor
* Drop io.opentelemetry.sdk.metrics.view package
2022-03-23 11:01:54 -05:00
jack-berg
322097ad4b
Hide exemplars ( #4276 )
...
* Make exemplar package internal
* Add method to reflectively set exemplar filter on SdkMeterProvderBuilder
2022-03-22 10:39:37 -05:00
jack-berg
2c695a34f8
Simplify MetricReader ( #4268 )
...
* Simplify MetricReader
* Tighten up PR
* Restore some methods / classes and deprecate
* Revert "Restore some methods / classes and deprecate"
This reverts commit fee90e5da7 .
2022-03-22 10:10:15 -05:00
Gregor Zeitlinger
b717b0625a
Add SpanDataAssert.hasAttribute ( #4271 )
...
* add assertAttributes to be able to assert a single attribute in a fluent way
* add assertAttributes to be able to assert a single attribute in a fluent way
* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/SpanDataAssert.java
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/SpanDataAssert.java
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-03-22 15:56:59 +09:00
Trask Stalnaker
cd2583df6a
Add misspell check (and fix misspellings) ( #4290 )
...
* Add misspell check
* Fix misspellings
* Spotless
2022-03-22 15:12:40 +09:00
Brian Yan
e54e7ac4dc
feat:add the shortcut of removeif in ResourceBuilder ( #4286 )
...
* fix:add an ending period to form notes
* feat:add the shortcut of removeif in ResourceBuilder
* fix:fix the errors of check
* feat:run two gradlew task to achieve check
* fix:fix format violations
* feat:remove extra function and modify the unit test
* fix: fix format violations
* feat:format code and modify unit test
* feat:make unit test specification
* feat:cleanup for normalize
2022-03-22 13:03:55 +09:00
Trask Stalnaker
ea288d9722
Reduce lock scope in CompletableResultCode ( #4281 )
2022-03-22 08:02:20 +09:00
jack-berg
59697eedc0
Metrics SDK odds and ends ( #4273 )
...
* Metrics SDK odds and ends
* Make InstrumentSelectorBuilder contructor package private
* Fix build
* Improve documentation for SdkMeterProviderBuilder defaults
2022-03-21 13:45:51 -05:00
jack-berg
dba57a538a
Drop io.opentelemetry.sdk.metrics.common package ( #4275 )
2022-03-21 10:02:08 -05:00
jack-berg
ccfa2dcbe4
Implement metric identity specification ( #4222 )
...
* Implement metric identity specification
* PR feedback
* Fix build
2022-03-15 12:46:27 -05:00
jack-berg
ac884b12e1
Remove log name field ( #4263 )
2022-03-15 08:06:52 +09:00
jack-berg
59a6061dc5
Deprecate InstrumentationLibraryInfo ( #4256 )
...
* Deprecate InstrumentationLibraryInfo
* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal
26c04299d3
Make MetricData factories internal ( #4257 )
2022-03-11 16:30:13 +09:00
Anuraag Agrawal
7ae6904039
Migrate Aggregation to interface ( #4255 )
2022-03-10 13:26:11 +09:00
Anuraag Agrawal
b0cdfdb78b
Migrate exemplar data to interface ( #4253 )
...
* Migrate exemplar data to interface
* internal
2022-03-10 12:08:38 +09:00
Anuraag Agrawal
ef427f69ce
Convert ValueAtPercentile to ValueAtQuantile ( #4254 )
2022-03-10 11:30:20 +09:00
Anuraag Agrawal
f5f99cf72d
Inline MeterSelector into InstrumentSelector ( #4241 )
2022-03-09 14:37:53 +09:00
Anuraag Agrawal
9ac622170e
Extract View configuration interface so it only exposes public API. ( #4239 )
...
* Extract View configuration interface so it only exposes public API.
* scare
2022-03-09 14:36:56 +09:00
Anuraag Agrawal
048a0c8d14
Migrate PointData to interface ( #4242 )
2022-03-09 11:16:48 +09:00
Anuraag Agrawal
e676eb41f6
Remove metrics SDK deprecations ( #4238 )
2022-03-09 09:09:05 +09:00
Anuraag Agrawal
5fb1189b98
Add int overload for equalTo attribute assertion ( #4249 )
2022-03-09 08:23:34 +09:00
Anuraag Agrawal
cb80383df8
Extract SummaryData interface for DoubleSummaryData ( #4224 )
...
* Extract SummaryData interface for DoubleSummaryData
* ValueAtQuantile too
* javadoc
2022-03-04 17:20:21 +09:00
Anuraag Agrawal
17265d0b0d
Extract HistogramData interface for DoubleHistogramData. ( #4219 )
...
* Extract HistogramData interface for DoubleHistogramData.
* Fix
* javadoc
* Fix merge
2022-03-04 16:49:39 +09:00
Anuraag Agrawal
5cbfe9d93e
Move ExponentialHistogram data to internal package. ( #4217 )
...
* Move ExponentialHistogram data to internal package.
* scare
* drift
2022-03-04 11:57:40 +09:00
Anuraag Agrawal
22c7a8e10b
Cleanups to View configuration ( #4225 )
2022-03-04 10:46:55 +09:00
Anuraag Agrawal
2527359cd5
Deprecate automatic histogram method for removal. ( #4218 )
2022-03-03 08:27:13 +09:00
Anuraag Agrawal
a6107d5590
Remove type-specific SumData ( #4216 )
...
* Remove type-specific SumData
* scare
2022-03-02 08:40:21 +09:00
Lauri Tulmin
26dd896c09
Fix android desugaring for HashMap.forEach ( #4221 )
2022-03-01 08:08:23 +09:00
jack-berg
963bc384c8
Instrumentation scope ( #4215 )
...
* Add InstrumentationScopeInfo class
* Rewrite tracer provider documentation
* Refactor ComponentRegistry to use InstrumentationScopeInfo
* Finish updating documentation to reference scope instead of library
* PR feedback
2022-02-26 10:43:55 -08:00
jack-berg
9f10e0048e
Allow multiple async callbacks, allow callbacks to be removed ( #4143 )
...
* Allow multiple async callbacks, allow callbacks to be removed
* Use AutoCloseable to remove callbacks, don't unregister from MetricStorageRegistry
* Use CopyOnWriteArrayList
* PR feedback
* PR feedback
2022-02-25 11:51:51 -06:00
James Moessis
c053393c32
optimise bucket comparison to fix slow test ( #4204 )
2022-02-25 14:39:50 +09:00
Anuraag Agrawal
69b00c3f35
Remove type-specific GaugeData ( #4207 )
2022-02-25 14:08:34 +09:00
Anuraag Agrawal
66520d1f3e
Cleanup ExemplarData ( #4205 )
2022-02-25 12:01:35 +09:00
Beppe Catanese
13fb460a54
(4172) Vararg versions of AttributeBuilder.put ( #4188 )
...
* Overload put with AttributeKey with String array
* Use generic instead of String
* Format and javadoc
* Cast to type
* New public method
* File based view configuration (#4163 )
* Add experimental view config module
* Rename view-config to metric-incubator
* Switch naming from camelCase to snake_case
* Extend with attribute key filter
* Wire up to autoconfiguration
* Use snakeyaml instead of jackson
* PR feedback
* PR feedback
* Remove explicit okio dependency (#4187 )
* Deprecate PrometheusCollector (#4185 )
* Correct javadoc
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Cast to type
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-02-24 14:04:57 -08:00