Commit Graph

1119 Commits

Author SHA1 Message Date
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