aboutsummaryrefslogtreecommitdiffstats
path: root/api/src
Commit message (Collapse)AuthorAgeFilesLines
* Common: Add an API Functions.returnToString(). (#1443)Yang Song2018-09-182-0/+26
| | | | | | * Common: Add an API Functions.returnToString(). * Fix comments and add tests.
* Tracing: Add AttributeValueDouble. (#1442)Yang Song2018-09-172-4/+185
| | | Also update Trace exporters and ZPages, and fix a few typos.
* Revert "Temporarily move "metrics" package into impl_core/ for release. ↵Yang Song2018-09-1430-2/+2831
| | | | | (#1426)" (#1432) This reverts commit d3fa0e5c60903f95c184d7c7bafae8fdd12156ad.
* Start 0.17.0 development cycle (#1429)sebright2018-09-141-1/+1
|
* Make LowerCaseBase16Encoding package protected. (#1427)Bogdan Drutu2018-09-124-10/+6
|
* Temporarily move "metrics" package into impl_core/ for release. (#1426)sebright2018-09-1230-2831/+2
| | | | | | | | | | 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.
* Remove guava dependency from the API artifact. (#1393)Bogdan Drutu2018-08-284-18/+184
| | | | | | * Remove guava dependency from the API artifact. * Make LowerCaseBase16Encoding static and remove import control.
* Avoid doing string formatting when calling checkArgument for Metrics ↵Bogdan Drutu2018-08-281-6/+3
| | | | package. (#1395)
* Avoid doing string formatting when calling checkArgument. (#1394)Bogdan Drutu2018-08-289-35/+151
|
* Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. ↵Bogdan Drutu2018-08-272-17/+59
| | | | | | | | (#1392) * Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. * Update changelog.
* Use Utils.checkNotNull instead of writing the null check. (#1385)Bogdan Drutu2018-08-271-3/+1
|
* Add missing Javadoc. (#1383)Yang Song2018-08-222-2/+7
|
* Metrics: Combine TimeSeriesCumulative and TimeSeriesGauge. (#1380)Yang Song2018-08-219-578/+129
|
* checkstyle: 8.0 -> 8.12 (#1369)sebright2018-08-167-13/+29
| | | | This commit also merges new changes to checkstyle.xml and fixes new checkstyle warnings related to Javadocs.
* Metrics: Implement ExportComponent, make ProducerManager abstract. (#1347)Yang Song2018-08-135-74/+38
| | | | | | | | | | | | * 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.
* Fix metrics tests by adding the RunWith annotation. (#1364)Bogdan Drutu2018-08-112-0/+10
|
* Metrics: Move metrics to opencensus-api. (#1346)Yang Song2018-08-1033-0/+3298
| | | | | | * Metrics: Move to api. * Update package-info to warn users on using metrics.
* Add support for recording Gauges. (#1344)Bogdan Drutu2018-08-102-0/+77
| | | | | | * Add support for Gauges in OpenCensus. * Minor comment fix.
* Add Tracestate into SpanContext. (#1359)Bogdan Drutu2018-08-093-15/+53
| | | | | | | | * Add Tracestate into SpanContext. * Remove empty constructor from Tracestate.Builder * Add info in the changelog.
* Add a warning about try-with-resource to auto-close spans. (#1362)Bogdan Drutu2018-08-071-0/+10
|
* Minor improvements for Tracestate. (#1358)Bogdan Drutu2018-08-032-4/+16
|
* Add the initial version of the TraceState class. (#1300)Bogdan Drutu2018-08-022-0/+500
| | | | | | | | | | | | | | * 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.
* Add Checker Framework stub file for gRPC Context.Key. (#1357)sebright2018-08-012-1/+8
| | | | 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.
* Fix incorrect argument to Checker Framework, and fix nullness warnings. (#1354)sebright2018-08-012-2/+4
| | | | | | 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.
* Remove copy of the internal.Utils. (#1332)Bogdan Drutu2018-07-201-0/+16
|
* Tracing: Reduce default limit on Links to 32. (#1315)Yang Song2018-07-162-2/+2
| | | | | | * Tracing: Reduce default limit on Links to 32. * Add this change to CHANGELOG.
* Mention that SampledSpanStore.getRegisteredSpanNamesForCollection is for ↵Kristen Kozak2018-07-092-42/+5
| | | | | | | | | | | 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.
* Stats: Add Exemplar class to DistributionData. (#1287)Yang Song2018-06-292-3/+179
|
* Stats: Add API MeasureMap.putAttachment() for recording exemplars. (#1285)Yang Song2018-06-282-0/+37
| | | | | | | | | | | | | | * 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.
* Clarify Javadoc for Tagger.withTagContext.Kristen Kozak2018-06-261-3/+3
| | | | See census-instrumentation/opencensus-specs#99.
* Summary Span: Add encoder/decoder for Server Stats. (#1272)rghetia2018-06-217-0/+704
| | | | | | | | | | | | | | | | | | | * 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()
* Start 0.16.0 development cycleKristen Kozak2018-06-201-1/+1
|
* Stats: Only include the simple class name in the error message for ↵Yang Song2018-06-202-39/+57
| | | | | | | | | | | | 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.
* Error Prone: 2.2.0 -> 2.3.1sebright2018-06-133-5/+2
|\
| * Error Prone: 2.2.0 -> 2.3.1Kristen Kozak2018-06-133-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | Tracing: fix typos in Tracer Javadoc. (#1256)Yang Song2018-06-131-5/+5
|/
* Add package-info for all main packages in opencensus-api. (#1245)Bogdan Drutu2018-06-083-0/+71
| | | | | | * Add package-info for all main packages in opencensus-api. * Fix format.
* Metrics: Move Metrics to a separate artifact. (#1216)Yang Song2018-06-051-31/+0
| | | | | | | | * Move Metrics to a separate artifact. * Fix review comments. * Update one TODO about the naming of the artifact.
* Start 0.15.0 development cyclesongy232018-06-041-1/+1
|
* Add since for Span.Kind constants and make SpanBuilder.setSpanKind not ↵Bogdan Drutu2018-06-012-3/+8
| | | | abstract. (#1226)
* Add Span.Kind to the trace API. (#1223)Bogdan Drutu2018-05-315-5/+112
| | | | | | | | * Add Span.Kind to the trace API. * Add @Nullable annotation where needed. * Add changes to changelog.
* Starts adding a metrics package. (#1211)Yang Song2018-05-281-0/+31
| | | | | | * Start adding a metrics package. * Add ExperimentalApi annotation to the package.
* Throw IllegalArgumentException when Timestamp.create receives invalid arguments.Kristen Kozak2018-05-152-16/+75
| | | | | | 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.
* Merge pull request #1198 from sebright/duration-error-handlingsebright2018-05-152-17/+78
|\ | | | | Throw IllegalArgumentException when Duration.create receives invalid arguments.
| * Throw IllegalArgumentException when Duration.create receives invalid arguments.Kristen Kozak2018-05-152-17/+78
| | | | | | | | | | Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more consistent with the rest of the opencensus-java API.
* | Remove PublicForTesting from Status.CanonicalCode.toStatus() (fixes #976).Kristen Kozak2018-05-141-2/+0
|/ | | | | This method is already used by the Stackdriver stats exporter to convert status types, so it should be part of the API.
* Update a @since tag for the next release.Kristen Kozak2018-05-111-1/+1
|
* Adds Tracing.getExportComponent().flushAndShutdown() for use within ↵Chris K Wensel2018-05-111-0/+7
| | | | | | | | | | | 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.
* Merge pull request #1176 from sebright/upgrade-checker-frameworksebright2018-05-021-4/+7
|\ | | | | Checker Framework: 2.5.0 -> 2.5.1
| * Checker Framework: 2.5.0 -> 2.5.1Kristen Kozak2018-05-021-4/+7
| | | | | | | | | | | | 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.