Commit Graph

32 Commits

Author SHA1 Message Date
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
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 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 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
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 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
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
Christian Neumüller be4420b350
Fix missing apidiff from #3168. (#3313) 2021-06-14 08:43:34 -07:00
John Watson ca92a9ab03
Introduce usage of the OpenTelemetry schema with a Tracer/MeterBuilder (#3309)
* Add the OpenTelemetry schema URL to the InstrumentationLibraryInfo and the corresponding API calls.

* small refactoring and doc tweaks from feedback

* make the instrumentation version nullable on the method that takes a schema

* update the apidiffs

* add since tags and a few more missing nullable annotations

* Switch to using a Builder rather than method overloads.
2021-06-11 20:50:23 -07:00
John Watson f563f4494d
v1.3.0 doc updates (#3305)
* Add CHANGELOG item for metrics autoconfiguration enhancement

* update for 1.3.0 release

* Documentation updates for the 1.3.0 release

* update the website docs for 1.3.0
2021-06-09 16:33:24 -07:00
Anuraag Agrawal 72374048aa
Update API diffs (#3302) 2021-06-09 07:37:37 -07:00
John Watson 5b4763321e
Implement handling the OTEL_SERVICE_NAME env var. (#3253)
* Implement handling the OTEL_SERVICE_NAME env var.

* Update to use the semconv module and attributes testing helpers.

* add unit tests for testing API additions
2021-05-27 09:55:26 -07:00
Anuraag Agrawal 672330bf51
Upgrade to Gradle 7.0 (#3228) 2021-05-13 08:21:22 +09:00
Anuraag Agrawal 77f0b0adc4
Allow enabling nullaway and fix some nullness issues (#3218)
* Add support for enabling nullaway and fix a couple of projects.

* Finish

* Finish

* Cleanup
2021-05-12 08:43:32 +09:00
John Watson e60857d369
Update docs for the 1.2.0 release (#3213)
* Update the changelog for version 1.2.0

* Update the README for version 1.2.0

* Update docs to include instructions related to API diffs.

* Add the diffs from 1.1.0

* tweak the japicmp task a bit and update the current diffs

* update the website docs to point at 1.2.0

* Add instructions about updating the website docs.
2021-05-08 11:59:52 +09:00
John Watson bd6cfd85fb
Add a task to compare public APIs for every stable module. (#3183)
* Add a task to compare public APIs for every stable module.

* add a few comments and make the build task depend on the japicmp task

* update the api diffs after rebasing.

* task must depend on jar

* a few script tweaks based on feedback

* small tweak to make it a little more kotlin-idiomatic

* refactoring to make the code more clear

* some more refactoring.

* make the latest released version a lazy val of the build script

* have the task depend on check, rather than build

* put all the API diffs into a central directory

* run at --info to diagnose CI issues

* try an older java 11 version

* try another combo

* remove the info logging
2021-05-06 17:49:49 -07:00
jack-berg cf368d6c42
Fix SDK Config documentation (#3177)
* Update sdk config documentation examples to reflect latest APIs.

* Add disclaimer to sdk configuration documentation.
2021-04-23 14:36:03 -07:00
jason plumb 47c96b5dd9
Fix trace benchmark (#2974)
* fix address passed to span processor, which was causing benchmark to not run.

* started some docs on how to run jmh
2021-03-03 10:55:41 -08:00
Anuraag Agrawal 3fc313a94d
Add a doc outlining possible approach to SDK configuration. (#2262)
* Add a doc outlining possible approach to SDK configuration.

* Apply suggestions from code review

* First some cleanups

* Revamp

* Global not magic

* Management, API-only, global

* Cleanups

* More cleanups
2020-12-22 09:34:55 +09:00
John Watson eccbfebf38
Another option for release versioning proposal (#2250)
* Add rationale and description of the release and versioning strategy.

* typo fix

* alternate version of the versioning strategy that tags the version rather than the artifact.

* add context for clarity

* Update docs/rationale.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* add some additional flavor about internals and mention the bom in an example

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-12-15 14:12:59 -08:00
Bogdan Drutu b73a063901
Remove getCurrentContext and withSpan from Tracer (#1809)
* Remove getCurrentContext and withSpan from Tracer

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Remove old java7 example

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-15 10:58:41 -07:00
Anuraag Agrawal 7bce323700
Add rationale.md to document design decisions that people may be curi… (#1627)
* Add rationale.md to document design decisions that people may be curious about later.

* Formatting

* OT -> OTel
2020-09-09 07:52:08 -07:00
William Hu 09c8c9ed94
Added preliminary documentation for the zPages contrib module (#1455) 2020-07-29 21:19:15 +02:00
Bogdan Drutu 1bc34614ae
Remove docs from master branch. Will be moved to gh-pages. (#311) 2019-05-15 12:04:53 -07:00
Pavol Loffay e143bccfb6
Add tagger to global registry (#299)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-14 16:04:32 +02:00
Bogdan Drutu 038e36f1f4
Update javadoc. (#240) 2019-05-03 08:04:42 -07:00
Bogdan Drutu 63bea7e613
Update javadoc for API. (#212) 2019-04-25 14:56:56 -07:00
Bogdan Drutu 1f3a481b70 Add openconsensus API javadoc. 2019-04-24 12:59:08 -07:00