| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
* Tracing: Reduce default limit on Links to 32.
* Add this change to CHANGELOG.
|
| |
|
|
|
|
|
|
|
|
|
| |
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 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.
|
| |
|
|
| |
See census-instrumentation/opencensus-specs#99.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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()
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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".
|
| |/ |
|
| |
|
|
|
|
| |
* Add package-info for all main packages in opencensus-api.
* Fix format.
|
| |
|
|
|
|
|
|
| |
* Move Metrics to a separate artifact.
* Fix review comments.
* Update one TODO about the naming of the artifact.
|
| | |
|
| |
|
|
| |
abstract. (#1226)
|
| |
|
|
|
|
|
|
| |
* Add Span.Kind to the trace API.
* Add @Nullable annotation where needed.
* Add changes to changelog.
|
| |
|
|
|
|
| |
* Start adding a metrics package.
* Add ExperimentalApi annotation to the package.
|
| |
|
|
|
|
| |
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.
|
| |\
| |
| | |
Throw IllegalArgumentException when Duration.create receives invalid arguments.
|
| | |
| |
| |
| |
| | |
Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more
consistent with the rest of the opencensus-java API.
|
| |/
|
|
|
| |
This method is already used by the Stackdriver stats exporter to convert status
types, so it should be part of the API.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\
| |
| | |
Checker Framework: 2.5.0 -> 2.5.1
|
| | |
| |
| |
| |
| |
| | |
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.
|
| |/
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
This change breaks the circular dependency between io.opencensus.internal and
io.opencensus.common.
|
| | |
|
| |
|
|
|
|
| |
* Improve java doc for toMillis().
* Make toMillis() non-static.
|
| |
|
|
|
|
|
|
|
|
| |
* Add toMillis() method to TimeUtils.
* Reuse toMillis() method in impl and exporters.
* Add a note about overflow and precision loss.
* Move toMillis() to Duration.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds two annotations to replace the uses of Guava's
VisibleForTesting annotation in opencensus-api. Each annotation has a more
specific meaning than VisibleForTesting, to make the uses of the annotations
more informative.
DefaultVisibilityForTesting - This annotation replaces the main use of
@VisibleForTesting, indicating that an element was changed from private to
package-private for testing.
PublicForTesting - This annotation is temporary and should be removed as part
of issue #977.
|
| | |
|
| |
|
|
|
| |
This commit replaces the most commonly used precondtion checks with methods in
a new utility class, io.opencensus.internal.Utils.
|
| |
|
|
|
| |
This commit also adds annotations to TextFormat that were required after the
change in checkNotNull.
|
| |
|
|
|
|
| |
This commit adds an "s" to TimeUtil, StringUtil, and BaseMessageEventUtil, for
consistency with utility classes that have been made public, such as
ContextUtils.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* Deprecate Mean and MeanData
* Suppress deprecation warnings.
* Suppress warning InconsistentOverloads
* CopyAnnotations for AutoValue Mean and MeanData
|
| |
|
|
|
|
| |
This change allows the Checker Framework to check the classes annotated with
@AutoValue, even though their generated subclasses are skipped. This commit
also fixes some previously suppressed warnings in the ViewData class.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This would have caught the unused variable that was fixed by #1082.
Changes in this commit:
- Enable FindBugs in tests in build.gradle.
- Fix some existing minor FindBugs issues in tests.
- Suppress some warnings in all test classes that are less important in test
code, such as requiring nested classes to be static whenever possible.
- Enable nullness-related FindBugs warnings in tests, since we don't run the
Checker Framework on test code.
|
| |
|
|
|
|
|
|
| |
* Move BaseMessageEventUtil to trace package.
* Move BaseMessageEventUtil to trace.internal. Work around findbugs.
* Update findbugs-exclude and remove since tag.
|