Age | Commit message (Collapse) | Author |
|
|
|
* Contrib: Add opencensus-contrib-opencensus-proto-util.
* Update CHANGELOG.
|
|
|
|
artifacts. (#1415)
This commit also updates the changelog.
|
|
|
|
|
|
log4j2. (#1411)
This commit renames the artifact to opencensus-contrib-log-correlation-log4j2
and renames the package to io.opencensus.contrib.logcorrelation.log4j2. The
name change emphasizes that the artifact only works with Log4j 2 and allows us
to add support for other versions of Log4j in the future.
|
|
|
|
* Initial import of OpenCensus/Sleuth integration.
* Minor fixes for integration with master.
* Adds a README.
* Removes hardcoded dependencies in build file.
* Adds contrib to spring_sleuth file path.
* Updates package names appropriately based on file renames.
* Fixes build paths.
* Fixes for build checks.
* Mark as experimental.
* Minor fixes for build files (space vs tab).
* Minor fixes for build files (space vs tab).
* Update README to absolve Spring Sleuth team of any responsibility for this spring_sleuth plugin.
* Minor fixes for import control (space vs tab).
* Tag public classes @since 0.16
* Adds javadoc for public methods not already documented.
* Updates OpenCensusSleuthTracer to pass nullness checks.
* Fixes for formatting issues.
* Fixes for typos.
* Suppresses the check return value warning added by gRPC.
* Suppresses the check return value warning added by gRPC.
|
|
* Update gRPC version to 0.14.
* Fix fingbugs warning.
* Add more comments about the workaround.
|
|
|
|
This commit takes the approach of implementing Log4j's ContextDataInjector. It
inserts three keys into each log event: "`openCensusTraceId`", "`openCensusSpanId`",
and "`openCensusTraceSampled`". The tracing data can be accessed with
LogEvent.getContextData() or included in a layout. See
https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/ContextDataInjector.html.
Here is an example of a pattern layout that includes all three tracing fields
and a log entry that could be produced by the layout:
Pattern layout:
"`%d{HH:mm:ss.SSS} [%t] traceId=%X{openCensusTraceId} spanId=%X{openCensusSpanId} sampled=%X{openCensusTraceSampled} %-5level %logger{36} - %msg%n`"
Log entry:
"`20:45:52.929 [main] traceId=0af7a7bef890695f1c5e85a8e7290164 spanId=d3f07c467ec2fbb2 sampled=true WARN io.opencensus.contrib.logcorrelation.log4j.demo.OpenCensusLog4jLogCorrelationDemo - my log message`"
The ContextDataInjector implementation must be specified with a system property,
i.e.,
"`-Dlog4j2.contextDataInjector=io.opencensus.contrib.logcorrelation.log4j.OpenCensusTraceContextDataInjector`".
The system property
"`io.opencensus.contrib.logcorrelation.log4j.OpenCensusTraceContextDataInjector.spanSelection`"
controls whether tracing data is added to all spans, no spans, or only sampled spans.
|
|
|
|
This commit also merges new changes to checkstyle.xml and fixes new checkstyle
warnings related to Javadocs.
|
|
* Metrics: Move to api.
* Update package-info to warn users on using metrics.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
* Add metric components for export and main package and metric producer.
* Solve first round of comments.
* Minor comments fixes.
|
|
|
|
|
|
* Stats: Add attachment key for TraceId and SpanId.
* Move the keys to an independent artifact and add methods for encoding.
* Add this change to CHANGELOG.
* Update description and tests.
* Have one method that takes SpanContext instead of two.
* Rename method to putSpanContextAttachments.
|
|
|
|
|
|
|
|
* Update Google Cloud version.
* Update Cloud Logging version.
|
|
artifacts.
|
|
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".
|
|
The demo project will be moved to
https://github.com/census-ecosystem/opencensus-experiments.
|
|
list.
|
|
|
|
|
|
|
|
|
|
* Move Metrics to a separate artifact.
* Fix review comments.
* Update one TODO about the naming of the artifact.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Move monitored resource detection utils to a separate artifact, so that it can be reused by both Stackdriver Monitoring and Stackdriver Trace.
|
|
This commit upgrades the Checker Framework but continues to use version 2.4.0 of
the Checker Framework compiler, since 2.4.0 is the last version that supports
annotations in comments. It should continue to work with newer versions of the
Checker Framework, though. See
https://github.com/census-instrumentation/opencensus-java/pull/1112#issuecomment-381366366.
|
|
See https://checkerframework.org/manual/#invariant-arrays. The build already
passes with this flag, so I think it is better to enable it and make the
handling of arrays more sound.
|
|
|
|
|