aboutsummaryrefslogtreecommitdiff
path: root/api
AgeCommit message (Collapse)Author
2018-09-12Make LowerCaseBase16Encoding package protected. (#1427)Bogdan Drutu
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-09-11Make jmh available for all subprojects. (#1425)Bogdan Drutu
2018-08-28Remove guava dependency from the API artifact. (#1393)Bogdan Drutu
* Remove guava dependency from the API artifact. * Make LowerCaseBase16Encoding static and remove import control.
2018-08-28Avoid doing string formatting when calling checkArgument for Metrics ↵Bogdan Drutu
package. (#1395)
2018-08-28Avoid doing string formatting when calling checkArgument. (#1394)Bogdan Drutu
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-27Use Utils.checkNotNull instead of writing the null check. (#1385)Bogdan Drutu
2018-08-22Add missing Javadoc. (#1383)Yang Song
2018-08-21Metrics: Combine TimeSeriesCumulative and TimeSeriesGauge. (#1380)Yang Song
2018-08-18 Update all targets to at least java7 and android14 (#1367)Bogdan Drutu
* Update all targets to at least java7 and android14 * Change code to be android14 compatible. * Select a specific version for each signature.
2018-08-16checkstyle: 8.0 -> 8.12 (#1369)sebright
This commit also merges new changes to checkstyle.xml and fixes new checkstyle warnings related to Javadocs.
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-11Fix metrics tests by adding the RunWith annotation. (#1364)Bogdan Drutu
2018-08-10Metrics: Move metrics to opencensus-api. (#1346)Yang Song
* Metrics: Move to api. * Update package-info to warn users on using metrics.
2018-08-10Add support for recording Gauges. (#1344)Bogdan Drutu
* Add support for Gauges in OpenCensus. * Minor comment fix.
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-07Add a warning about try-with-resource to auto-close spans. (#1362)Bogdan Drutu
2018-08-03Minor improvements for Tracestate. (#1358)Bogdan Drutu
2018-08-02Add the initial version of the TraceState class. (#1300)Bogdan Drutu
* Add the initial version of the TraceState class. * Add builder pattern. * Clean API and add tests. * Rename addOrUpdate to set and apply trailing rules for value. * Apply google java format. * Fix check framework.
2018-08-01Add Checker Framework stub file for gRPC Context.Key. (#1357)sebright
The stub file adds Nullable annotations to indicate that Context.Key.get can return null when the key has no default or the key has a nullable value type.
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-20Remove copy of the internal.Utils. (#1332)Bogdan Drutu
2018-07-16Tracing: Reduce default limit on Links to 32. (#1315)Yang Song
* Tracing: Reduce default limit on Links to 32. * Add this change to CHANGELOG.
2018-07-09Mention that SampledSpanStore.getRegisteredSpanNamesForCollection is for ↵Kristen Kozak
testing. This commit fixes the last part of #977. getRegisteredSpanNamesForCollection was originally public and annotated with VisibleForTesting because it was meant for testing code that uses OpenCensus. However, VisibleForTesting is not ideal because it adds a dependency on Guava and it does not appear in Javadocs. This commit instead describes the purpose of the method in the Javadocs. It also removes the temporary PublicForTesting annotation.
2018-06-29Stats: Add Exemplar class to DistributionData. (#1287)Yang Song
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-06-26Clarify Javadoc for Tagger.withTagContext.Kristen Kozak
See census-instrumentation/opencensus-specs#99.
2018-06-21Summary Span: Add encoder/decoder for Server Stats. (#1272)rghetia
* Summary Span: Add encoder/decoder for Server Stats. * Fixed build errors reported by Kokoro/Travis. * Fixed review comments. - Added missing javadoc annotation. - included version in encoder/decoder. - renamed get methods for ServerStats. * Change version from 0.15 to 0.16 - also fixed CURRENT_VERSION for encoder/decoder and added test for it. * Make ServerStatsEncoding public. * Add Test ServerStatsFieldEnum.Size replace traceOption() wiht getTraceOption()
2018-06-20Start 0.16.0 development cycleKristen Kozak
2018-06-20Stats: Only include the simple class name in the error message for ↵Yang Song
ViewData.check methods. (#1267) * Stats: Only include the simple class name in the error message for ViewData.check methods. * Copy checkArgument and lazily create error message. * Rename help methods to avoid InconsistentOverloads. * Improve error messages in the unit tests.
2018-06-13Error Prone: 2.2.0 -> 2.3.1sebright
2018-06-13Error Prone: 2.2.0 -> 2.3.1Kristen Kozak
This commit contains several other changes as part of the upgrade: - Use -XepAllDisabledChecksAsWarnings to enable all available warnings so that we don't need to enable each warning explicitly. - Remove explicit suppression of warnings in generated code, since -XepDisableWarningsInGeneratedCode is now sufficient to suppress all warnings in AutoValue and Protocol Buffer generated classes. - Remove a suppression of "ConstructorLeaksThis", since https://github.com/google/error-prone/pull/789 was fixed. - Fix a few occurrences of "FieldCanBeFinal".
2018-06-13Tracing: fix typos in Tracer Javadoc. (#1256)Yang Song
2018-06-08Add package-info for all main packages in opencensus-api. (#1245)Bogdan Drutu
* Add package-info for all main packages in opencensus-api. * Fix format.
2018-06-05Metrics: Move Metrics to a separate artifact. (#1216)Yang Song
* Move Metrics to a separate artifact. * Fix review comments. * Update one TODO about the naming of the artifact.
2018-06-04Start 0.15.0 development cyclesongy23
2018-06-01Add since for Span.Kind constants and make SpanBuilder.setSpanKind not ↵Bogdan Drutu
abstract. (#1226)
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-28Starts adding a metrics package. (#1211)Yang Song
* Start adding a metrics package. * Add ExperimentalApi annotation to the package.
2018-05-15Throw IllegalArgumentException when Timestamp.create receives invalid arguments.Kristen Kozak
Throwing IllegalArgumentException for invalid arguments is more consistent with the rest of the opencensus-java API. This commit also fixes a test that created an invalid Timestamp.
2018-05-15Merge pull request #1198 from sebright/duration-error-handlingsebright
Throw IllegalArgumentException when Duration.create receives invalid arguments.
2018-05-15Throw IllegalArgumentException when Duration.create receives invalid arguments.Kristen Kozak
Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more consistent with the rest of the opencensus-java API.
2018-05-14Remove PublicForTesting from Status.CanonicalCode.toStatus() (fixes #976).Kristen Kozak
This method is already used by the Stackdriver stats exporter to convert status types, so it should be part of the API.
2018-05-11Update a @since tag for the next release.Kristen Kozak
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-02Merge pull request #1176 from sebright/upgrade-checker-frameworksebright
Checker Framework: 2.5.0 -> 2.5.1
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-05-02Add missing Nullable annotation to Functions.returnNull().Kristen Kozak
The Checker Framework didn't detect this error, because the method used @SuppressWarnings("unchecked") for a different reason. This commit also fixes a potential NPE in ZipkinExporterHandler.
2018-04-27Start 0.14.0 development cycle (#1157)Yang Song