wesleyhillyext
0d2b7b03b7
Allow root Context to be overridden ( #3230 )
...
* Allow root Context to be overridden
Adds ContextStorage.root() to provide a way to customize the
implementation of the root Context when you don't want the
root to be an ArrayBasedContext.
* Update context/src/main/java/io/opentelemetry/context/ContextStorage.java
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-07-21 16:13:56 -07:00
Anuraag Agrawal
d4bbaf405d
Add containsEntry overload that accepts int ( #3412 )
2021-07-21 13:41:59 +09:00
dependabot[bot]
e4c03453eb
Bump codecov/codecov-action from 1.5.2 to 2.0.1 ( #3411 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 1.5.2 to 2.0.1.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.5.2...v2.0.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-20 18:26:29 -07:00
BrianYan
9fdd001e58
Add factories for SamplingResult ( #3410 )
...
* fix:rebase it
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/samplers/SamplingResult.java
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-07-20 08:44:53 -07:00
Anuraag Agrawal
8163b9fc00
Add assertion for exception ( #3409 )
2021-07-20 08:49:40 +09:00
John Watson
a081b0283e
Further work on cleaning up the auto-generated javadoc for SemanticAttributes and ResourceAttributes ( #3398 )
2021-07-19 08:28:49 -07:00
Anuraag Agrawal
6d9e5801c7
Fix disableErrorProne ( #3405 )
2021-07-15 08:41:30 -07:00
Anuraag Agrawal
3d0485364b
Add hasNoParent assertion ( #3406 )
2021-07-15 14:09:25 +09:00
Anuraag Agrawal
4cb2a5f0a3
Doc updates for 1.4.1 ( #3403 )
2021-07-15 13:03:56 +09:00
Anuraag Agrawal
5e6be2bb52
Populate labels in addition to attributes for now on metrics. ( #3397 )
...
* Populate labels in addition to attributes for now on metrics.
* meow
* Non-string keys
2021-07-15 09:21:47 +09:00
John Watson
543b5eee45
update the examples to point at 1.4.0 ( #3400 )
2021-07-15 08:52:30 +09:00
Anna Nosek
f606a5b19b
Add documentation for OTEL_SERVICE_NAME ( #3396 )
...
* add doc for OTEL_SERVICE_NAME
* Update sdk-extensions/autoconfigure/README.md
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2021-07-14 07:49:51 -07:00
John Watson
3925b50cc9
Tweak the semantic convention code generation. ( #3394 )
...
* Tweak the semantic convention code generation.
In particular, to better support links and html in the docs.
* small simplification of the template
2021-07-13 14:39:18 -07:00
Josh Suereth
45b73debe8
Fixes #3392 - Metric benchmark no longer throws NPE, and add 'realistic' histogram benchmark for comparison against prototype. ( #3393 )
2021-07-12 08:18:16 -07:00
Josh Suereth
ae4bb364cd
Wire Exemplars into the metrics.data package ( #3353 )
...
* Add Exemplars into `metrics.data` pacakge
- Add Exemplars to match OTLP spec
- Add assertj helpers for exemplar extraction on points.
* Wire exemplar export to OTLP exporter
* Wire exemplar export to Prometheus exporter
* Add javadoc for AbstractSampledPointDataAssert
* Fixes from review.
* Fixes from review.
* Fixes from review.
* Fixes from spotless.
* Fixes froom review.
* Add clarification to javadoc from review.
* ONe last javadoc cleanup.
* Fixes to javadoc build.
* Update method name from review.
* Fixes from review.
2021-07-10 13:20:31 +09:00
John Watson
57bd952756
Update the semconv constants to v1.5.0 ( #3381 )
...
* Update the semconv constants to v1.5.0
Also, tweak our checkstyle settings to allow long markdown-style links.
* remove linelength checkstyle checks, since spotless already formats for us
2021-07-09 09:31:17 -07:00
John Watson
f83b780c41
Provide an option for disabling errorprone for a smoother dev experience ( #3380 )
...
* Provide an option for disabling errorprone for a smoother dev experience
* add a warning if you have turned off errorprone
2021-07-09 08:57:56 -07:00
John Watson
41c7fbf1cb
API Diff updates for 1.4.0 ( #3391 )
...
* reset the apidiffs
* generate apidiffs for 1.4.0
2021-07-09 08:57:21 -07:00
Anuraag Agrawal
a7f38027ad
Update docs for 1.4.0 ( #3389 )
2021-07-09 08:34:10 -07:00
Anuraag Agrawal
669bf0b42b
Add TraceAssert.getSpan ( #3386 )
...
* Add TraceAssert.getSpan
* Fix and comment
2021-07-09 07:45:29 -07:00
Anuraag Agrawal
f13fe7961d
Allow forceFlush of IntervalMetricReader, globally too for autoconfigure / agent. ( #3385 )
2021-07-09 22:46:40 +09:00
Anuraag Agrawal
31110381cc
Update changelog with clock ( #3383 )
2021-07-09 13:03:16 +09:00
Anuraag Agrawal
25a053cc54
Make MonotonicClock not implement Clock and move to package private. ( #3372 )
...
* Make MonotonicClock not implement Clock and move to package private.
* Anchored
* Remove nanoTime
* Not really milliseconds now adays
2021-07-09 12:29:00 +09:00
Anuraag Agrawal
1196e836b9
Remock shutdown after reset. ( #3382 )
2021-07-09 12:03:48 +09:00
Anuraag Agrawal
f90040579e
Allow users to access the default Clock and TestClock ( #3363 )
...
* Allow users to access the default Clock and TestClock
* Update TestClock API
* Doc
* Fix
* html
* Less newlines
* Update sdk/common/src/main/java/io/opentelemetry/sdk/common/Clock.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-07-09 11:26:55 +09:00
John Watson
6449a84ce4
Updates for the CHANGELOG as of July 8, 2021 ( #3332 )
...
* Updates for the CHANGELOG as of Jun 18, 2021
Also added a couple of missing @since tags.
* update as of July 8
2021-07-08 18:21:15 -07:00
Anuraag Agrawal
d7e8651767
Add vararg hasEvents assertion ( #3377 )
...
* Add vararg hasEvents assertion
* Test
2021-07-09 10:01:49 +09:00
John Watson
d8999911fc
Remove the AWS XRay sampler code ( #3379 )
...
* Remove the AWS XRay sampler code and deprecate the AwsXrayIdGenerator
* de-deprecate the AWS Xray ID Generator
2021-07-09 08:31:39 +09:00
Anuraag Agrawal
b5d202a08c
Add hasAttributes which takes a list of entries. ( #3378 )
2021-07-09 08:06:50 +09:00
Anuraag Agrawal
e3bcc8b2a1
Different pattern for embedding shaded dependency. ( #3371 )
2021-07-08 08:52:46 -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
Trask Stalnaker
ddf46e180f
Sync .editorconfig with instrumentation repo ( #3375 )
2021-07-07 20:41:15 -07:00
Anuraag Agrawal
431bb1281a
Use property to specify test java version instead of adding tasks. ( #3365 )
...
* Use property to specify test java version instead of adding tasks.
* Typo
2021-07-05 11:15:48 +09:00
dependabot[bot]
fffc831c46
Bump docker/build-push-action from 2.5.0 to 2.6.1 ( #3362 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v2.5.0...v2.6.1 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-02 12:11:11 +09:00
Josh Suereth
b12a57ed21
Migrate Metrics SDK "data' package to Attributes ( #3352 )
...
* Update java metrics data model and create assertion based testing library.
* Update existing SDK for Label => Attribute in data model
- Finish wiring through changes to all code/tests.
- DOES NOT touch API
- Update existing tests to use new testing library to be sensitive to attribute vs. label hashing alterations + equality of the metrics.data package types.
* Fix javadoc breakages
* Fix JMH compile
* Finish javadoc
* Fixes from review
* Remove botched file.
* Fixes from review.
2021-07-01 09:15:44 -07:00
John Watson
0e0d9b5dd3
Add @kubawach as an Approver ( #3358 )
2021-07-01 07:54:40 -07:00
Anuraag Agrawal
7134da1277
Add reservoir borrowing and statistics collection to x-ray sampler. ( #3355 )
...
* Add reservoir borrowing and statistics collection to x-ray sampler.
* Cleanup
2021-06-30 11:19:58 +09:00
Anuraag Agrawal
f83a9531be
Add the actual XRay remote sampler which polls rules and orders / app… ( #3343 )
...
* Add the actual XRay remote sampler which polls rules and orders / applies them.
* Test cleanup
* Don't spam logs
2021-06-27 10:46:21 +09:00
Anuraag Agrawal
fb7e8d2983
Fix jacoco by eagerly configuring it. ( #3344 )
2021-06-24 08:02:35 -07:00
brunomed
535b5b9eff
BatchSpanProcessor falls back to ArrayBlockingQueue if `jdk.unsupported` is not available ( #3340 )
...
* rename JcTools' newMpscArrayQueue to newFixedSizeQueue
* falls back to ArrayBlockingQueue if `jdk.unsupported` is not available
2021-06-24 08:21:52 +09:00
Anuraag Agrawal
e81e95df78
Add logic for processing a xray remote SamplingRule ( #3341 )
...
* Add logic for processing a xray remote SamplingRule
* Cleanup
2021-06-24 08:16:23 +09:00
Anuraag Agrawal
08ec61708a
Add support for fetching xray sampling targets. ( #3335 )
...
* Add support for fetching xray sampling targets.
* Cleanup
2021-06-23 08:16:42 +09:00
Anuraag Agrawal
ce9c8854c7
Extract publishing and animalsniffer plugins. ( #3334 )
2021-06-22 08:23:16 +09:00
Anuraag Agrawal
4844b82a59
Extract japicmp config to plugin. ( #3330 )
2021-06-21 13:52:01 +09:00
Anuraag Agrawal
c3614b6b23
Add support for fetching xray sampling rules. ( #3331 )
...
* Add support for fetching xray sampling rules.
* Small tweak
* Remove unused
* Cleanup
* Creators
2021-06-21 13:26:42 +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
5f03e70628
Migrate protobuf logic to plugin ( #3329 )
...
* Migrate protobuf build logic to plugin
* Cleanup
2021-06-18 08:50:18 -07:00
Anuraag Agrawal
07ee2f86a3
Migrate to maintainted nexus plugin ( #3323 )
2021-06-18 12:23:47 +09:00
Anuraag Agrawal
8384afed88
Update to Gradle 7.1 ( #3325 )
2021-06-17 18:58:21 -07:00
John Watson
893ade37e2
revert our CI to use ubuntu 18.04 ( #3327 )
2021-06-18 10:03:44 +09:00