aboutsummaryrefslogtreecommitdiff
path: root/impl_core/src/main/java/io/opencensus
AgeCommit message (Collapse)Author
2018-09-24Avoid using LinkedList and remove couple SuppressWarnings. (#1469)Bogdan Drutu
2018-09-22Split SpanImpl into record/notrecord span impl to avoid checks of recording ↵Bogdan Drutu
all time. (#1468) * Split SpanImpl into record/notrecord span impl to avoid checks of recording all time. * Remove one extra SuppressWarnings.
2018-09-21Avoid 3 allocs, one builders and two objects when startSpan. (#1466)Bogdan Drutu
2018-09-14Revert "Temporarily move "metrics" package into impl_core/ for release. ↵Yang Song
(#1426)" (#1432) This reverts commit d3fa0e5c60903f95c184d7c7bafae8fdd12156ad.
2018-09-12Temporarily move "metrics" package into impl_core/ for release. (#1426)sebright
The "metrics" package isn't ready to be released yet, so this commit moves it out of the API artifact. The package can still be accessed by the stats implementation in impl_core/. This commit can be reverted once the package is ready to be exposed. The moved package names also contain "temporary" so that there is no possibility of class name conflicts between different versions of opencensus-api and opencensus-impl-core. For example, io.opencensus.metrics.export is renamed to io.opencensus.implcore.temporary.metrics.export.
2018-08-27Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. ↵Bogdan Drutu
(#1392) * Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. * Update changelog.
2018-08-22Add missing Javadoc. (#1383)Yang Song
2018-08-21Metrics: Combine TimeSeriesCumulative and TimeSeriesGauge. (#1380)Yang Song
2018-08-21Extract logic about current state in internal class. (#1381)Bogdan Drutu
2018-08-20Implement CurrentStatsState using atomic variables. (#1377)Bogdan Drutu
* Implement CurrentStatsState using atomic variables. * Ignore findbugs warning and add changelog comments.
2018-08-20Make an internal function static. (#1375)Yang Song
* Make an internal function static. * Make other functions static too.
2018-08-20Remove match pattern from MutableAggregation. (#1372)Bogdan Drutu
* Remove match pattern from MutableAggregation. * Update comments in MutableAggregation.
2018-08-19Use the internal get version for getting the current state. (#1373)Bogdan Drutu
2018-08-17Fix stats to metrics implementation. (#1368)Bogdan Drutu
* Fix stats to metrics implementation. * Fix imports and logic to handle gauges. * Fix checker framework * fix style.
2018-08-15Stats: Register MetricProducer in Stats-impl. (#1348)Yang Song
* Stats: Implement MetricProducer in Stats. * Add unit tests. * Remove MetricProduce from Stats API. Register it statically in the impl.
2018-08-14Add implementation for gauges. (#1365)Bogdan Drutu
* Add implementation for gauges. * Remove usage of internal class in implcore tests.
2018-08-13 Metrics: Implement ExportComponent, make ProducerManager abstract. (#1347)Yang Song
* Metrics: Implement ExportComponent, make ProducerManager abstract. * Metrics: Add impl and impllite. * Resolve two TODOs. * Fix import path, leave a TODO for getMetricRegistry. * Make NoopMetricProducerManager private. Add missing since tag.
2018-08-09Add Tracestate into SpanContext. (#1359)Bogdan Drutu
* Add Tracestate into SpanContext. * Remove empty constructor from Tracestate.Builder * Add info in the changelog.
2018-08-08Metrics: Produce and store Metrics in Stats impl. (#1338)Yang Song
Support recording `Metric`s in stats impl. This works as the following: - When a `View` is registered, convert that `View` to a `MetricDescriptor` and register it; - When a `Measurement` along with a `TagContext` are recorded, convert them into a data row consisting of `LabelValue`s and `Point`s; - If `getMetrics()` is called, convert the `MetricDescriptor`s and data rows into `Metric`s. Then flush all data rows. This PR only contains internal support in the impl. None of these changes are user-visible yet.
2018-08-08Remove protected method from final class. (#1363)Bogdan Drutu
2018-08-01Fix incorrect argument to Checker Framework, and fix nullness warnings. (#1354)sebright
709d97aa321d5729988fd63b960bbece04cfba10 modified the -AskipDefs argument to the Checker Framework (a regular expression) in a way that caused it to skip checking all files. This commit fixes the regular expression and the new Checker Framework warnings.
2018-07-25Cleanup: Move static util methods to util class. (#1343)Yang Song
* Cleanup: Move static util methods to util class. * Fix checker framework.
2018-07-10Stats: Support recording Exemplars in the impl. (#1294)Yang Song
* Stats: Support recording Exemplars in the impl. * Add more comments and tests. * Exemplar array will be null with no histogram.
2018-06-28Stats: Add API MeasureMap.putAttachment() for recording exemplars. (#1285)Yang Song
* Stats: Add API MeasureMap.withAttachments() for recording exemplars. * Add this change to CHANGELOG * Stats: implement the new API in impl. * Rename API and merge the string maps on multiple calls. * Update the API to putAttachment(String, String) for simplicity. * Fix a typo and add a TODO about making putAttachment abstract.
2018-05-31Add Span.Kind to the trace API. (#1223)Bogdan Drutu
* Add Span.Kind to the trace API. * Add @Nullable annotation where needed. * Add changes to changelog.
2018-05-11Adds Tracing.getExportComponent().flushAndShutdown() for use within ↵Chris K Wensel
application shutdown hooks. (#1141) Adds the ability to flush pending spans via a call to Tracing.getExportComponent().shutdown() This allows a developer to force a flush from within a shutdown hook or other means. Unfortunately the underlying Disruptor instance only provides a #shutdown() call, not a flush, or a public method for testing for backlog. Thus shutdown has propagated up to the above api call.
2018-05-02Checker Framework: 2.5.0 -> 2.5.1Kristen Kozak
2.5.1 includes a fix for https://github.com/typetools/checker-framework/issues/1838. This commit also adds a few more @Nullable annotations that are required now.
2018-04-27Add Aggregation.LastValue and AggregationData.LastValueData to support Gauge ↵Yang Song
(#1055) * Add LastValue and LastValueData * Support LastValue and LastValueData in impl * Use Utils instead of Precondition * Add LastValue and remove Mean from match() method. * Support LastValue and LastValueData in exporters and zpages. * Update MutableLastValue, add comments on why Mean is still supported.
2018-04-27Check for null in more public methods in Span and its subclasses.Kristen Kozak
2018-04-24Added null checking to Span implementations (#1150)dvfeinblum
This PR adds null checking to classes that implement Span. Specifically, - BlankSpan - NoopSpan - Span - SpanImpl For the latter, I had to use Preconditions.checkNotNull because io.opencensus.internal shouldn't be imported into ImplCore.
2018-04-17Remove dependency between io.opencensus.implcore and io.opencensus.internal.Kristen Kozak
io.opencensus.internal should only be accessed by the API library.
2018-04-16Improve Duration.toMillis() (#1132)Yang Song
* Improve java doc for toMillis(). * Make toMillis() non-static.
2018-04-16 Move toMillis(Duration) to Utils so that it can be reused. (#1114)Yang Song
* Add toMillis() method to TimeUtils. * Reuse toMillis() method in impl and exporters. * Add a note about overflow and precision loss. * Move toMillis() to Duration.
2018-04-13Makes the trace and span ID fields mandatory in binary format (#1120)Adrian Cole
2018-04-04Add nullness annotations to Preconditions.checkNotNull.Kristen Kozak
This commit also adds annotations to TextFormat that were required after the change in checkNotNull.
2018-03-28Deprecate Mean and MeanData (#1101)Yang Song
* Deprecate Mean and MeanData * Suppress deprecation warnings. * Suppress warning InconsistentOverloads * CopyAnnotations for AutoValue Mean and MeanData
2018-03-21Substitute non-ascii characters in B3Format header key. (#1072)Hailong Wen
2018-03-07Deprecate Window and WindowData. (#1018)Yang Song
* Deprecate Window and WindowType in Stats APIs * Window and WindowData will continue to be NonNull * Suppress warnings for impl, exporter and zpages. * NoopStats should continue to use old method.
2018-02-22Add comments to boolean arguments to fix Error Prone warning (BooleanParameter).Kristen Kozak
2018-02-16Add MessageEvent and deprecate NetworkEvent. (closes #858) (#894)Hailong Wen
2018-02-06Make `XxxSpanStoreImpl` abstract and add no-op implementation. (fixes #914) ↵Hailong Wen
(#964)
2018-02-01Checker Framework: 2.3.0 -> 2.3.2Kristen Kozak
The new version fixes https://github.com/typetools/checker-framework/issues/1712, so this commit also removes the workaround.
2018-01-17Add http propagation APIs. (#930)Hailong Wen
* Add http propagation APIs. * Add an API in `PropagationComponent` for B3 format access. * Add contrib-http-util, with initial SD format support.
2017-12-20Minor Javadoc update.Kristen Kozak
2017-12-20Rename NullnessUtils to CheckerFrameworkUtils.Kristen Kozak
2017-12-19Add Checker Framework annotations in comments (issue #359).Kristen Kozak
Putting the annotations in comments allows us to use Java 8 syntax and avoid depending on the Checker Framework library. Note that we need to use org.checkerframework.checker.nullness.qual.Nullable for marking types nullable, because javax.annotation.Nullable can't be applied to types.
2017-12-19Suppress some Checker Framework warnings and add TODOs (issue #359).Kristen Kozak
Fixing these warnings will require significant refactoring.
2017-12-19Work around a possible bug in the Checker Framework (issue #359).Kristen Kozak
The issue https://github.com/typetools/checker-framework/issues/1712 affects all uses of the visitor pattern in this project. This commit adds utility methods for working around the issue and calls them from all "match" methods.
2017-12-19Suppress nullness warnings from issue #914.Kristen Kozak
2017-12-19Refactor some code to pass Checker Framework null analysis (issue #359).Kristen Kozak
This commit shouldn't change any behavior. It just allows the Checker Framework to determine that there are no NPEs.