Commit Graph

1163 Commits

Author SHA1 Message Date
Anuraag Agrawal e2b5245d73
Rename newBuilder to builder for consistency. (#1790) 2020-10-13 13:17:06 -07:00
John Watson 939d1b8ddc
Baggage propagator first implementation (#1771)
* Turn the Baggage metadata into a simple wrapper for a String.

* whoops missing final modifier

* remove unneeded nullable annotation

* Remove the method to parent via Baggage.
Parenting is still implemented via the Context.
Also, renamed many old variables and method to use the new baggage name.

* update for context changeover

* Remove the method to parent via Baggage.
Parenting is still implemented via the Context.
Also, renamed many old variables and method to use the new baggage name.

* Basic implementation of baggage header extraction.

* inject implemented

* cleanup checks

* update for context changeover
2020-10-13 15:30:01 +09:00
Anuraag Agrawal 492a8171e1
Add GitHub workflows to automate releases (#1781)
* Add GitHub workflows to automate releases

* Cleanup

* Tab

* Rename prepareRelease and manual patch release instructions.
2020-10-13 15:21:42 +09:00
John Watson 22281d6f61
Change the Sampler interface to allow a SamplingResult to update the TraceState (#1707)
* Change the Sampler interface to have the SamplingResult contain the TraceState to use.

* revert errant change from another PR

* Change the SamplingResult API to allow a Function that will update the TraceState.

* revert an odd change from a rebase

* Change the SamplingResult to not have a functional response a concrete one.

* Add an additional bit of javadoc to the new method.
2020-10-12 22:46:02 -07:00
John Watson b5cae9b28b
Make the RERS return isRecording=false after it has ended. (#1789) 2020-10-13 11:45:11 +09:00
jarebudev 05646477a8
changed B3Propagator to default to inject/extra single header (#1775)
* changed B3Propagator to default to inject/extra single header, and allow multiple headers to be injected by creating propagator via a builder

* changed to return Optional instead of null from B3PropagatorExtractor

* tidy up method name in B3Propagator builder
2020-10-12 15:23:28 -07:00
John Watson ff73ae8142
Convert the ValueObserver instruments to use the LastValue aggegration. (#1689)
* Convert the ValueObserver instruments to use the LastValue aggegration.

* update for rebase
2020-10-12 15:19:54 -07:00
Anuraag Agrawal 487e57ea11
Add constants for message operations which are defined by spec. (#1783) 2020-10-12 09:45:13 -07:00
Anuraag Agrawal 2d7f7f05d9
Exclude jaeger proto classes from coverage. (#1782) 2020-10-12 08:18:59 -07:00
Bogdan Drutu 69117e6dea
Fix warnings found by idea IDE in the SDK dir. (#1773)
* Fix warnings found by idea IDE.

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

* Run spotlessApply

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

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2020-10-12 17:42:09 +09:00
John Watson 246b402769
update the examples for 0.9.1 (#1779)
* update the examples for 0.9.1

* update the examples for 0.9.1
2020-10-11 20:50:22 -07:00
John Watson 0b6ae189b7
Update the docs for the 0.9.1 release (#1777)
* Update the docs for the 0.9.1 release

* correct a bad method name

* Update CHANGELOG.md

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-10-11 20:49:58 -07:00
Anuraag Agrawal 72e17bb2cc
Add a few missing package-info.java (#1776)
* Add a few missing package-info.java

* Spotless
2020-10-09 08:06:58 -07:00
Anuraag Agrawal 8228d34f3e
Mark up README (#1750) 2020-10-09 12:42:33 +09:00
John Watson b1d2c8ef0f
Simple throughput tester tool, with toxiproxy to make things difficult. (#1740)
* Simple throughput tester tool, with toxiproxy to make things difficult.

* fix build issues

* add some silly javadoc to make checkstyle happy

* Add multi-threaded span creation, warmup cycle

* Update perf_harness/docker/otel-collector-config-perf.yaml

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* remove 2 un-needed files

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-10-08 11:45:43 -07:00
John Watson 012da09027
Remove the method to parent via Baggage. (#1767)
* Turn the Baggage metadata into a simple wrapper for a String.

* whoops missing final modifier

* remove unneeded nullable annotation

* Remove the method to parent via Baggage.
Parenting is still implemented via the Context.
Also, renamed many old variables and method to use the new baggage name.

* small javadoc tweak

* update for context changeover
2020-10-08 10:54:33 -07:00
John Watson 5f6c5bf297
Turn the Baggage metadata into a simple wrapper for a String. (#1764)
* Turn the Baggage metadata into a simple wrapper for a String.

* whoops missing final modifier

* javadoc cleanup

* use the empty metadata as the OT Shim default

* remove unneeded nullable annotation
2020-10-08 10:34:52 -07:00
Anuraag Agrawal 78fd4d1c8f
Add package-info.java to all packages and ParamatersAreNonNullByDefault. (#1772) 2020-10-08 08:26:49 -07:00
Christian Neumüller 41bd0ab28a
Update wrapper declaration in build.gradle (#1769)
Follow-up for #1529.
2020-10-07 11:22:27 -07:00
Anuraag Agrawal fd49b3f65f
Migrate usage of gRPC context to OTel context. (#1751) 2020-10-07 11:19:49 -07:00
dengliming 1a7396413a
Fix specification link in SemanticAttributes.java (#1763)
* Fix specification link in SemanticAttributes.java

* Update link
2020-10-06 10:17:44 -07:00
Anuraag Agrawal d361dfa2f9
Remove SpanData implementation classes from public API. (#1761) 2020-10-06 10:17:11 -07:00
Anuraag Agrawal f91baf1890
Loosen test waiting time and migrate to junit5 while here. (#1762) 2020-10-06 08:04:29 -07:00
Anuraag Agrawal 009dd7d20f
Remove assertion on interrupted which is not reliable. (#1760)
* Wait until thread interrupted.

* Remove check on interrupted
2020-10-06 09:16:34 +09:00
Anuraag Agrawal 08c90f9ea4
Don't set packaging type explicitly since Gradle determines it automatically, set description for BOM project, and remove outdated bom publication configuration (#1758) 2020-10-06 08:40:09 +09:00
Carlos Alberto Cortez df913dd7bb
Start 0.10.0 development cycle (#1756) 2020-10-05 13:07:30 -07:00
Bogdan Drutu 79287f4a0b
Avoid creating new status objects when null description (#1755)
* Avoid creating new status objects when null description

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

* Add license and remove todo

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-05 12:29:16 -07:00
Bogdan Drutu 6c660d92e5
Add overload for setStatus without description, fix usages (#1754)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-05 09:05:46 -07:00
Bogdan Drutu 52477d66bd
Remove helper method withDescription from ImmutableStatus (#1752)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-05 09:04:45 -07:00
Anuraag Agrawal 21fbb36d81
Add an OpenTelemetry context mechanism. (#1658)
* Add an OpenTelemetry context mechanism.

* Moar

* Extracted interfaces

* More context

* Cleanup / tests

* Move and cleanups

* Brackets

* Add example for brave context interop

* Brave in OTel

* Spotless

* Missing folder

* Another

* Spotless
2020-10-05 17:03:11 +09:00
Anuraag Agrawal ed169645f7
Migrate to spotless (#1748)
* Use spotless for formatting / license check

* Apply formatting

* README

* Apply to example

* google-java-format 1.8 for now

* google-java-format 1.7 for now (last supporting Java 8)
2020-10-05 16:41:21 +09:00
Bogdan Drutu eb4a18febc
Remove Status object from API, keep StatusCanonicalCode (#1741)
* Remove Status object from API, keep StatusCanonicalCode

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

* Respond to comments, change more old usages

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

* Fix build, run gojf

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-05 11:33:40 +09:00
Ioannis Mavroukakis 42cdff446c
subsume methods from AttributesKeys to AttributeKey (#1743)
* subsume methods from AttributesKeys to AttributeKey

* remove missed instance of AttributesKeys

* make javadoc wording more representative of method intent
2020-10-04 10:41:37 -07:00
Bogdan Drutu 50a8fbff30
Remove unnecessary methods from api/internal (#1747)
* Remove unnecessary methods from api/internal

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

* Make sdk/StringUtils package protected

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-04 09:50:34 -07:00
Bogdan Drutu 5f5da23add
Fix reference to correlation context (#1746)
* Fix reference to correlation context

Also fix the README components list to use English sentences.

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

* Fix sdk extensions

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

* Fix opentracing shim sentence

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-04 09:05:42 -07:00
Bogdan Drutu b93d1a4d55
Remove Link from API, use SpanData.Link in Sampler (#1739)
* Remove Link from API, use SpanData.Link in Sampler

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

* Fix tracing_incubator

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-02 10:42:22 -07:00
Bogdan Drutu a706fb3350
Rename EventImpl to ImmutableEvent (#1738)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-02 08:56:12 -07:00
Anuraag Agrawal 9c6f1ff031
Increase deadline for deadline test. (#1736)
* Increase deadline for deadline test.

* Format
2020-10-02 08:39:42 -07:00
dengliming 71ba8e1b87
Use the concise license header without the year (#1623)
* Use the concise license header without the year

* Use the concise license header without the year
2020-10-02 22:42:53 +09:00
Bogdan Drutu 391043fa1f
Remove redundant type argument conversion (#1734)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-01 18:41:56 -07:00
John Watson 0746ddbf68
Expose a new TracerSdkManagement interface on the OpenTelemetrySdk class. (#1723)
* have the TracerSdkProvider return the public interface, rather than a package-access class.

* change the OpenTelemetrySdk to return a management interface, rather than the SDK implementation class directly.

* formatting fix

* rename methods/parameters for the new interface
get rid of almost all production-code references to the TracerSdkProvider

* update some docs that still refer to using the old method/class
2020-10-02 10:39:07 +09:00
Bogdan Drutu 790018f004
Remove addLink that accepts Link interface (#1732)
* Remove addLink that accepts Link interface

Currently the Link interface cannot easily be removed, used in the Sampler interface,
will do a separate PR for that.

Based on the specs we don't have to offer a "lazy" formatted Link API (was removed some time ago).

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

* Copy javadoc instead of reference

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

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2020-10-01 18:24:02 -07:00
Bogdan Drutu b78fbb31fa
Remove Event interface, and it's usage (#1733)
* Remove Event interface, and it's usage

Based on the specification we are not required to expose this interface or have APIs that accept this interface.

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

* Fix links to Event

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

* Fix more javadocs references to Event

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-02 10:05:28 +09:00
David Poncelow 64c2b8cc65
initial commit of logging support extension (#1524)
* initial commit of logging support extension

* complete move from extensions to sdk_extensions

* address code review comments

* move logging_support to logging/support

* missed test update in last commit

* code format

* change list to queue in implementation, collection in api

* missed making a utility method static

* fix a broken test

* Update sdk_extensions/logging/support/src/main/java/io/opentelemetry/logging/api/LogRecord.java

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>

* reworked to align with how we batch process spans

* move of CompletableResultCode and formatting

* update AnyValue to use long instead of int

* address code review comments

rename Exporter to LogExporter, move to 'export' package
rename LogExporter.accept(data) to LogExporter.export(data)
decrease flush interval from 5000 to 200ms
return CompletableResultCode from LogExporter.shutdown()
change traceId and spanId types to String from byte[]

* implement BatchLogProcessor.fromConfigMap

* rearrange packages

* add readme

* respond to review feedback, refactored BatchLogProcessor

* added a couple tests

* update to use new Attributes, remove support directory, public LogRecord getters

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
2020-10-01 16:08:47 +09:00
Anuraag Agrawal 68cb1640ad
Disable cache action remote proxy (#1731) 2020-10-01 11:39:40 +09:00
Anuraag Agrawal 7fe2cd55be
Use awaitility / higher timeout to reduce flakiness. (#1729) 2020-09-30 08:21:24 -07:00
John Watson 231ca02400
Make setting null-valued attributes a no-op, and document that their behavior is undefined. (#1706)
* Make setting null-valued attributes a no-op, and document that their behavior is undefined.

* also have the span itself ignore null attribute values

* Update api/src/main/java/io/opentelemetry/common/Attributes.java

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>

* Set the non-null-by-default annotation on the package level for the common code.

* add no-op validating tests with a caveat

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
2020-09-30 08:08:32 -07:00
Bogdan Drutu 5fa1dbab87
Remove Descriptor from metrics data to be consistent with proto (#1716)
* Remove Descriptor from metrics data to be consistent with proto

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

* Remove references to descriptor

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-09-30 08:07:48 -07:00
Anuraag Agrawal 21aa8afe7f
Add GitHub Actions continuous build to replace CircleCI. (#1730) 2020-09-30 08:06:45 -07:00
Sergei Malafeev c577ee17f7
check traceparent for extra trailing characters for version 00 (#1727)
* check traceparent for extra trailing characters for version 00

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add tests and make "00" a constant

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-09-30 08:01:46 -07:00