aboutsummaryrefslogtreecommitdiff
path: root/buildscripts
AgeCommit message (Collapse)Author
2018-10-08 Exporter/OcAgent: Add a fake implementation of TraceService. (#1481)Yang Song
* Exporter/OcAgent: Add a fake impl of TraceService. * Move the fake server impl to test.
2018-10-08Add dropwizard contrib (#1423)Mayur Kale
* Add dropwizard metrics producer * Use Summary Type * Fix reviews * Fix reviews
2018-09-26Exporter/OCAgent: Add OcAgentNodeUtils. (#1471)Yang Song
* Exporter/OCAgent: Add OcAgentNodeUtils. Add utilities for detecting and creating Node. Equivalent to https://github.com/census-ecosystem/opencensus-go-exporter-ocagent/blob/master/nodeinfo.go. * Fix nullness checker. * Use a local VERSION string in OC-Agent Exporter.
2018-09-24Exporter/OCAgent: Move TraceProtoUtils to exporter. (#1470)Yang Song
2018-09-24Exporter: Start adding OC-Agent Trace Exporter. (#1455)Yang Song
2018-09-20Contrib: Add opencensus-contrib-opencensus-proto-util. (#1459)Yang Song
* Contrib: Add opencensus-contrib-opencensus-proto-util. * Update CHANGELOG.
2018-09-14Revert "Temporarily move "metrics" package into impl_core/ for release. ↵Yang Song
(#1426)" (#1432) This reverts commit d3fa0e5c60903f95c184d7c7bafae8fdd12156ad.
2018-09-14Improve implementation of OpenCensusTraceContextDataInjector. (#1413)sebright
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.
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-09Avoid using internal org.apache.logging.log4j.core.impl package. (#1421)sebright
This commit adds the internal package to import-control.xml and removes the use of org.apache.logging.log4j.core.impl.ThreadContextDataInjector.
2018-09-06Rename opencensus-contrib-log-correlation-log4j artifact/package to use ↵sebright
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.
2018-09-05Spring sleuth (#1378)Dino Oliva
* 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.
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-27Start adding log correlation for Log4j. (#1371)sebright
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.
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-15Stats: Register MetricProducer in Stats-impl. (#1348)Yang Song
* Stats: Implement MetricProducer in Stats. * Add unit tests. * Remove MetricProduce from Stats API. Register it statically in the impl.
2018-08-14Ignore VarInt for coverage. (#1366)Bogdan Drutu
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-08Metrics: Produce and store Metrics in Stats impl. (#1338)Yang Song
Support recording `Metric`s in stats impl. This works as the following: - When a `View` is registered, convert that `View` to a `MetricDescriptor` and register it; - When a `Measurement` along with a `TagContext` are recorded, convert them into a data row consisting of `LabelValue`s and `Point`s; - If `getMetrics()` is called, convert the `MetricDescriptor`s and data rows into `Metric`s. Then flush all data rows. This PR only contains internal support in the impl. None of these changes are user-visible yet.
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-26Update import control. (#1345)Yang Song
2018-07-21fixed checkstyle problemssavaki
2018-07-20Add metric components for export and main package and metric producer. (#1322)Bogdan Drutu
* Add metric components for export and main package and metric producer. * Solve first round of comments. * Minor comments fixes.
2018-07-13Update import control on metrics. (#1311)Yang Song
2018-07-12Contrib: Add an exemplar_util artifact to help record special exemplars. (#1297)Yang Song
* 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.
2018-06-12Merge pull request #1212 from sebright/stackdriver-log-correlationsebright
Start adding log correlation for Stackdriver Logging.
2018-06-12Remove opencensus-contrib-log-correlation-stackdriver-demo.Kristen Kozak
The demo project will be moved to https://github.com/census-ecosystem/opencensus-experiments.
2018-06-12Start adding log correlation for Stackdriver Logging.Kristen Kozak
2018-06-12Stackdriver Trace Exporter: add resource labels to Spans. (#1243)Yang Song
* Stackdriver Trace Exporter: add resource labels to Spans. * Fix review comments. * Make resource labels static and only initialize once. * Remove SuppressWarnings("unchecked") * Passing resource_label map to generateSpan(). * Fix a checkstyle error. * Add more unit tests on resource labels.
2018-06-07Remove Checkstyle rule VariableDeclarationUsageDistance (#1242)Yang Song
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-04Fix checkstyle download link. (#1232)Bogdan Drutu
2018-05-30Add util contrib package for AppEngine standard. (#1214)Bogdan Drutu
2018-05-24Run codecov reporting only if running as part of kokoro build. (#1210)rghetia
2018-05-23To bring parity with travis build add missing tasks to kokoro build.rghetia
- Each task is treated as separate job to run in parallel. - single script linux_presumbit.sh performs all task based TASK env.
2018-05-03Merge pull request #1182 from rghetia/kokoro_osxrghetia
Add kokoro build scripts for osx platform.
2018-05-03Add kokoro build scripts for osx platform.rghetia
* compiled on osx.
2018-05-03Add kokoro build scripts for windows platform.rghetia
* compiled buildscripts/kokoro/windows.bat on Windows instance.
2018-04-30Add build script and configure for Internal CI build.rghetia
2018-04-26Move monitored resource detection utils to a separate artifact. (#1135)Yang Song
Move monitored resource detection utils to a separate artifact, so that it can be reused by both Stackdriver Monitoring and Stackdriver Trace.
2018-04-18Add some general guidelines on package imports to import-control.xml.Kristen Kozak
2018-04-18Control package dependencies with Checkstyle.Kristen Kozak
This commit uses the Checkstyle ImportControl feature (http://checkstyle.sourceforge.net/config_imports.html#ImportControl) to specify the allowed imports for each package. Specifying imports has several benefits: - It makes some parts of the design more concrete. For example, it shows that 'stats' can depend on 'tags', but 'tags' shouldn't depend on 'stats' or 'trace'. - We can use it to restrict access to 'internal' packages. - It can help us remove the dependency on Guava incrementally. For example, this commit specifies that the API can only depend on com.google.common.io.BaseEncoding, which should help us avoid accidentally adding more uses of Guava to the API. One downside is that the check seems to only apply to import statements, not qualified class names. This commit specifies imports positively, using "allow" XML elements. If the lists of imports are too difficult to maintain, especially for packages such as exporters that have many imports, we could switch to using "disallow" elements in some places.
2017-09-02Add RedundantImport check and upgrade checkstyle to 8.0. (#579)Bogdan Drutu
2017-08-24Move checkstyle files to buildscripts directory. (#542)Bogdan Drutu