aboutsummaryrefslogtreecommitdiff
path: root/impl_core/src/main/java/io/opencensus
AgeCommit message (Collapse)Author
2017-12-19Add more null annotations (issue #359).Kristen Kozak
This commit adds some Nullable annotations that are required by the Checker Framework, but it doesn't change any other code. It also suppresses some Error Prone and FindBugs warnings that conflict with the Checker Framework, since the three tools use different algorithms.
2017-12-15Check for null in TagContextBuilderImpl.remove and add tests.Kristen Kozak
2017-12-15Improve TagContextImpl tests.Kristen Kozak
This commit splits some of the existing tests in order to test different operations separately. It also updates variable names and the implementation of TagContextBuilder.put after the removal of tag types.
2017-12-14Increase exporting interval and fix warnings. (#905)Bogdan Drutu
2017-12-14Add initial support fox X-Cloud-Trace-Context. (#900)Hailong Wen
2017-12-13Add methods to wrap Runnable and Callbacks and to run them. (#778)Bogdan Drutu
* Add methods to wrap Runnable and Callbacks and to run them. * Fix more comments. * Fix use of Assert.fail(). * Improve javadocs for the start and wrap methods. * Remove startSpanAndWrap API for the moment. * Change wrap to withSpan. * Fix examples in SpanBuilders.
2017-12-13Support previous encoding versions. (#901)Yang Song
2017-12-11Add initial support for b3-propagation headers. (#889)Bogdan Drutu
* Add initial support for b3-propagation headers. * Update tests and throw exception when missing span_id or trace_id. * Cleanup and add more tests. * Update comments. Update tests.
2017-12-05Use continue when skip a value in a while-loop. (#879)Bogdan Drutu
* Use continue when skip a value in a while-loop. * Cleanup test code.
2017-12-04Merge pull request #868 from HailongWen/app-engine-compatible-threadfactoryHailong Wen
Use AppEngine compatible way to create threads. (fixes #707 and #777)
2017-12-01Use AppEngine compatible way to create threads. (fixes #707 and #777)Hailong Wen
2017-11-28Skip null tag value for exporter (#843)Yang Song
2017-11-17Only apply size limit to the bytes representing tag keys and values. (#807)Yang Song
* Only apply size limit to the bytes representing tag keys and values. * Reword error message when size exceeds limit * Add a note about chars == bytes
2017-11-16Enforce size limit when serializing and deserializing TagContext. (#806)Yang Song
2017-11-14Cache the set of views returned from ViewManagerImpl.getAllExportedViews.Kristen Kozak
2017-11-14Put view registration methods together in MeasureToViewMap.Kristen Kozak
2017-11-14Add ViewManager.getAllExportedViews().Kristen Kozak
This method currently returns all registered cumulative views. We could add a way to specify which views should be exported later. The API is currently needed for the StackDriver exporter. The NoopViewManager also returns all cumulative views. However, the exporter could choose to not export data when stats collection isn't enabled.
2017-11-14Merge pull request #804 from sebright/update-error-prone-warnings-for-2.1.2sebright
Update lists of enabled Error Prone warnings with the latest bug patterns.
2017-11-13Update lists of enabled Error Prone warnings with the latest bug patterns.Kristen Kozak
I used the latest list of bug patterns from http://errorprone.info/bugpatterns. I had to turn off FieldMissingNullable because of an Error Prone bug and suppress two instances of other warnings in the code. I removed NonRuntimeAnnotation and ProtocolBufferOrdinal from the list because they were promoted to errors. I also enabled two previously disabled warnings because they seemed to no longer cause any problems in this project.
2017-11-13Enable new InconsistentOverloads Error Prone experimental warning.Kristen Kozak
This commit also fixes two occurrences.
2017-11-13Enable new ReturnMissingNullable Error Prone experimental suggestion.Kristen Kozak
I also added some missing Nullable annotations.
2017-11-13Deprecate Stats.setState, and throw an exception when it is called after ↵Yang Song
getState. (#792) * Throw IllegalStateException if setState is called after getState * Deprecate Stats.setState * Remove a test that has potential race condition. * Remove Deprecated from impl
2017-11-13Merge pull request #790 from sebright/deprecate-Tags-setStatesebright
Deprecate Tags.setState, and throw an exception when it is called after getState.
2017-11-12com.google.errorprone:error_prone_core: 2.0.19 -> 2.1.2Kristen Kozak
Other changes: - Remove references to warnings that were removed from Error Prone. - Suppress occurrences of a new warning, JdkObsolete. All of the warnings are about uses of LinkedList. We need to decide whether to use a different class or continue suppressing the warnings. I left TODOs, since each occurrence may need to be handled differently.
2017-11-10Add TODO about removing locking from CurrentStatsState.Kristen Kozak
2017-11-10Deprecate Tags.setState, and throw an exception when it is called after ↵Kristen Kozak
getState. This commit is related to #608. It deprecates Tags.setState and TagsComponent.setState and makes NoopTagsComponent.setState and TagsComponentImplBase.setState throw IllegalStateException when they are called after getState.
2017-11-09 Move implementation directories (#786)Yang Song
* Move directories: core_impl to impl_core, core_impl_java to impl, core_impl_android to impl_lite.
2017-11-07Add a setStatus method in the Span. (#779)Bogdan Drutu
* Add a setStatus method in the Span. * Update after feedback. * Run ./gradlew goJF * Update comment in EndSpanOptions.
2017-11-06Extract the DeamonThreadFactory from Disruptor and clean code. (#783)Bogdan Drutu
2017-11-03Add gradle plugin for google java format. Enforce all files to be formatted. ↵Bogdan Drutu
(#771) * Add gradle plugin for google java format. Enforce all files to be formatted. * Fix javadoc comments. * update to google-java-formatter 1.5 * Fix comments and run formatter only for java8. * Formatter works only on java8.
2017-10-25Remove contention between threads and worker thread when register span ↵Bogdan Drutu
names. (#729) * Remove contention between threads and worker thread when register span names. * Mark getRegisteredSpanNamesForCollection as test only.
2017-10-18Add an option in EndSpanOptions to register the span name for sampled store. ↵Bogdan Drutu
(#703) * Add an option in SpanBuilder to register the span name for sampled store. * Change to LocalSpanStore name the SpanBuilder. * Move the option to EndSpanOptions. * Fix comments.
2017-10-05Remove dependency between i.o.implcore.tags and i.o.internal.Kristen Kozak
The tagging implementation was using NoopScope from the API library, even though it was in an "internal" package. This commit adds a NoopScope class to io.opencensus.implcore.internal.
2017-09-22Fix probability sampler and sampling. (#661)Bogdan Drutu
* Fix probability sampler and sampling. * Add more tests and fix comments.
2017-09-21Change when we check the sampler. (#657)Bogdan Drutu
* Change when we check the sampler. * Fix comments. * Deprecate setIsSampled without an argument.
2017-09-18Add a new SpanContextParseException and use it in BinaryFormat. (#642)Bogdan Drutu
* Add a new SpanContextParseException and use it in BinaryFormat * Fix review comments.
2017-09-16Implement deprecated method addAttributes in the Span and remove it from ↵Bogdan Drutu
anywhere else. (#633) * Implement deprecated method addAttributes in the Span and remove it from anywhere else. * Fix tests and add warning to override putAttributes.
2017-09-13Add a method to list all registered span names. (#623)Bogdan Drutu
* Add a method to list all registered span names. * Change the name to getRegisteredSpanNamesForCollection
2017-09-07Add separate buckets for sampled and not sampled spans. (#592)Bogdan Drutu
2017-08-31Fix backwards compatibility between TraceComponentBaseImpl and ↵Bogdan Drutu
TraceComponent. (#575)
2017-08-29Add new api that is easier to use for user to add only one Attribute. (#571)Bogdan Drutu
* Add new api that is easier to use for user to add only one Attribute. * Rename addAttribute[s] to putAttribute[s] and deprecate the old API. * Update tests to use putAttributes.
2017-08-23Change the licence to OpenCensus authors. (#539)Bogdan Drutu
2017-08-17Use different package names in each artifact. (fixes #379)Kristen Kozak
This commit uses the following package name prefixes in each artifact, in order to ensure that no package is split across artifacts: opencensus-api: io.opencensus opencensus-impl-core: io.opencensus.implcore opencensus-impl: io.opencensus.impl opencensus-impl-lite: io.opencensus.impllite
2017-08-16Move tracing implementation classes to io.opencensus.impl.trace.Kristen Kozak
This is part of #379. The package name may still need to be changed again, but this commit includes all of the changes necessary to put the API and implementation in separate packages. Other changes in this commit: - Make TraceComponent's constructor public. - Leave deprecated copies of the TraceComponent subclasses in the io.opencensus.trace package so that they can be loaded by opencensus-api 0.5. - Move internal classes to io.opencensus.impl.internal. - Make TraceComponentImplBase and BinaryFormatImpl public.
2017-07-24Fix a bug in the implementation that causes all Spans with RECORD_EVENTS ↵Bogdan Drutu
options to also be exported. (#458) * Fix a bug in the implementation that causes all Spans with RECORD_EVENTS options to also be exported. * Make startEndHandler final
2017-07-06Change hasRemoteParent to be Boolean where null means root Span. (#427)Bogdan Drutu
2017-07-06Add an optional number of child spans that were generated while this span ↵Bogdan Drutu
was running. (#426)
2017-07-06Get rid of base directory and move everything on level up. (#417)Bogdan Drutu
* Get rid of base directory and move everything on level up. * Remove unused imports in tests.
2017-07-05Clarify the nature of the Link.Type enum (#413)Bogdan Drutu
2017-07-04Move Sampler abstract class and EndSpanOptions to the main package. (#412)Bogdan Drutu