aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Add OpenCensus build modules required for gRPCHadrien Zalek2020-05-271-0/+26
| | | | | | | | | | | Add Soong build modules that are required compile-time and runtime dependencies of gRPC Java client libraries. Note that the current grpc-java-core module is imported which explains why there are no build-time errors. Test: m opencensus-java-api && m opencensus-java-contrib-grpc-metrics Bug: 148404241 Change-Id: Ie92d1ca959ca2104bae7b92b4509b42f8e4184f7
* Metrics/Metric: Add a version of create that accepts only one timeseries. ↵Mayur Kale2018-10-141-4/+4
| | | | | | | | (#1495) * Metrics/Metric: Add createWithOneTimeSeries method * Fix review comments
* contrib/DropWizardMetrics: Exclude Meter rate measures (#1493)Mayur Kale2018-10-133-119/+19
|
* Metrics/TimeSeries: Add createWithOnePoint method to accept only one … (#1486)Mayur Kale2018-10-101-25/+16
| | | | | | | | * Metrics/TimeSeries: Add createWithOnePoint method to accept only one point * Fix reviews * Minor Fix
* Add dropwizard contrib (#1423)Mayur Kale2018-10-086-0/+907
| | | | | | | | | | * Add dropwizard metrics producer * Use Summary Type * Fix reviews * Fix reviews
* Exporter/OCAgent: Move TraceProtoUtils to exporter. (#1470)Yang Song2018-09-244-740/+0
|
* Contrib: Add opencensus-contrib-opencensus-proto-util. (#1459)Yang Song2018-09-204-0/+740
| | | | | | * Contrib: Add opencensus-contrib-opencensus-proto-util. * Update CHANGELOG.
* Improve tests for OpenCensusTraceContextDataInjector. (#1422)sebright2018-09-204-49/+125
| | | | | | | | | This commit adds unit tests for OpenCensusTraceContextDataInjector.rawContextData(). It also makes several other minor improvements to the Log4j log correlation tests: - Puts TestSpan in a separate file for reuse. - Explicitly sets the SpanSelection in tests, where possible. - Simplifies the tests by calling ReadOnlyStringMap.toMap().
* Common: Add an API Functions.returnToString(). (#1443)Yang Song2018-09-181-6/+1
| | | | | | * Common: Add an API Functions.returnToString(). * Fix comments and add tests.
* Update release versions for all readme and build files. (#1452)sebright2018-09-1810-30/+30
|
* Update links to Log4j log correlation demo. (#1439)sebright2018-09-171-2/+2
|
* Fix ClassCastException in opencensus-contrib-log-correlation-log4j2. (#1437)sebright2018-09-171-30/+6
| | | | | | | | | | | | | | Fixes #1436. Log4j's SortedArrayStringMap can contain Object values, but `SortedArrayStringMap.getValue` has signature `<V> V getValue(String key)` and unsafely casts the Objects to type `V`. When the OpenCensus ContextDataInjector returned a SortedArrayStringMap, and then a Log4j ContextMapLookup looked up values as Strings to insert them into log entries (https://github.com/apache/logging-log4j2/blob/fa27894c13c3890e4ae545f6b6365ea2e159757c/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/ContextMapLookup.java#L58), it resulted in a ClassCastException. This commit fixes the ClassCastException by only inserting String values into the Log4j SortedArrayStringMap.
* Tracing: Add AttributeValueDouble. (#1442)Yang Song2018-09-171-0/+1
| | | Also update Trace exporters and ZPages, and fix a few typos.
* Update release versions for all readme and build files. (#1435)sebright2018-09-157-20/+20
| | | | | This commit also updates the gRPC dependency to 1.13.1 in the Maven and Gradle examples in order to resolve a dependency conflict in the Maven build.
* Improve implementation of OpenCensusTraceContextDataInjector. (#1413)sebright2018-09-144-63/+276
| | | | | | | This commit improves the thread safety of OpenCensusTraceContextDataInjector by following the thread safety requirements in the Javadocs of the overridden methods from ContextDataInjector. It also handles the possibility of ThreadContext.getThreadContextMap() returning null by adding a Nullable annotation in a Checker Framework stub file and adding null checks to the code.
* Make jmh available for all subprojects. (#1425)Bogdan Drutu2018-09-111-29/+0
|
* Avoid using internal org.apache.logging.log4j.core.impl package. (#1421)sebright2018-09-091-2/+8
| | | | This commit adds the internal package to import-control.xml and removes the use of org.apache.logging.log4j.core.impl.ThreadContextDataInjector.
* Fix a memory reference issue caused by the fact that we always append a new ↵Bogdan Drutu2018-09-071-13/+26
| | | | | | | | value. (#1420) * Fix a memory reference issue caused by the fact that we allways appended a new value. * Add Nullable annotations.
* Stackdriver log correlation: Use lowercase c in "openCensusTraceSampled" ↵sebright2018-09-073-7/+7
| | | | | | field. (#1418) This change is consistent with the change to Log4j log correlation context key names in #1414.
* Change spring-sleuth package to include version. (#1417)Bogdan Drutu2018-09-0712-9/+9
|
* Log4j log correlation: Capitalize "opencensus" as one word in context key ↵sebright2018-09-064-22/+22
| | | | | names. (#1414) For example, this commit renames "openCensusTraceId" to "opencensusTraceId".
* Update opencensus-contrib-log-correlation-log4j2 artifact/package names in ↵sebright2018-09-061-6/+6
| | | | | readme. (#1416) This commit is a continuation of #1411.
* Rename opencensus-contrib-log-correlation-log4j artifact/package to use ↵sebright2018-09-068-16/+16
| | | | | | | | 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.
* Spring sleuth (#1378)Dino Oliva2018-09-0512-0/+1134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Contrib/agent: detach() should take the context returned from attach(). (#1409)Yang Song2018-09-051-19/+16
| | | | | | | | | | * Contrib/agent: detach() should take the context returned from attach(). * Put a try...finally block after attach. * Compare context and value in the main thread. * Remove unnecessary check on context value.
* Stackdriver log correlation: Improve description of library stability. (#1406)sebright2018-09-041-2/+2
| | | This change is similar to a change made to Log4j log correlation: https://github.com/census-instrumentation/opencensus-java/pull/1402#discussion_r213934235
* Log4j log correlation: Add unit tests for handling configuration properties. ↵sebright2018-09-042-1/+68
| | | | (#1405)
* Add readme for opencensus-contrib-log-correlation-log4j. (#1402)sebright2018-09-041-1/+86
|
* Update gRPC version to 1.14. (#1404)Yang Song2018-08-312-2/+10
| | | | | | | | * Update gRPC version to 0.14. * Fix fingbugs warning. * Add more comments about the workaround.
* Update release versions for all readme and build files. (#1398)Yang Song2018-08-286-18/+18
|
* Remove guava dependency from the API artifact. (#1393)Bogdan Drutu2018-08-281-1/+2
| | | | | | * Remove guava dependency from the API artifact. * Make LowerCaseBase16Encoding static and remove import control.
* Start adding log correlation for Log4j. (#1371)sebright2018-08-278-0/+772
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Access current span using gRPC context key in ↵sebright2018-08-261-6/+9
| | | | | | | | | OpenCensusTraceLoggingEnhancer. (#1386) Avoiding accessing the OpenCensus tracing implementation early in initialization is more robust. See the discussion in https://github.com/census-instrumentation/opencensus-java/pull/1371#discussion_r211440915 and https://github.com/census-instrumentation/opencensus-java/pull/1371#discussion_r211441000.
* Update all targets to at least java7 and android14 (#1367)Bogdan Drutu2018-08-188-8/+14
| | | | | | | | * Update all targets to at least java7 and android14 * Change code to be android14 compatible. * Select a specific version for each signature.
* Fix deprecation warnings in OpenCensusTraceLoggingEnhancerTest.java. (#1370)sebright2018-08-161-7/+16
|
* checkstyle: 8.0 -> 8.12 (#1369)sebright2018-08-164-1/+8
| | | | This commit also merges new changes to checkstyle.xml and fixes new checkstyle warnings related to Javadocs.
* Add Tracestate into SpanContext. (#1359)Bogdan Drutu2018-08-092-2/+7
| | | | | | | | * Add Tracestate into SpanContext. * Remove empty constructor from Tracestate.Builder * Add info in the changelog.
* Fix incorrect argument to Checker Framework, and fix nullness warnings. (#1354)sebright2018-08-013-1/+7
| | | | | | 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.
* Top-level style class added for Zpages use + Final commit for GSoC... (#1351)ADAM GARZA2018-07-317-327/+195
|
* Zpages external CSS added and gradle modified to include this resource (#1341)ADAM GARZA2018-07-252-0/+105
|
* Delete a TODO fixed by #1339. (#1340)sebright2018-07-241-3/+0
|
* Add links to google-cloud-logging log correlation examples. (#1339)sebright2018-07-241-0/+8
|
* Merge pull request #1314 from savaki/springMatt Ho2018-07-249-0/+697
|\ | | | | added support for spring annotations
| * refactored Handler.proceed as per suggestions from @bogdandrutusavaki2018-07-243-13/+5
| |
| * added `@since` to exported classes and methodssavaki2018-07-213-1/+20
| |
| * removed test prefix from test methods; updated readmesavaki2018-07-212-6/+15
| |
| * added final keyword to CensusSpringAspect and CensusSpringSqlAspectsavaki2018-07-212-2/+2
| |
| * pushed spring runtime requirements to testCompilesavaki2018-07-211-4/+3
| |
| * fixed type on examplesavaki2018-07-211-1/+3
| |
| * capturing exception type rather than entire stacktracesavaki2018-07-212-6/+3
| |