* 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
* 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.
* 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
* 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>
* 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
* 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
* 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>
* 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)
* subsume methods from AttributesKeys to AttributeKey
* remove missed instance of AttributesKeys
* make javadoc wording more representative of method intent
* 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>
* 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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>