Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | H | 25-Apr-2025 | - | 1,091 | 536 | |
README.md | H A D | 25-Apr-2025 | 1.4 KiB | 36 | 29 | |
build.gradle | H A D | 25-Apr-2025 | 439 | 18 | 13 |
README.md
1# OpenCensus Resources Util 2[![Build Status][travis-image]][travis-url] 3[![Windows Build Status][appveyor-image]][appveyor-url] 4[![Maven Central][maven-image]][maven-url] 5 6The *OpenCensus Resource Util for Java* is a collection of utilities that defines a set of 7common resources (aws_ec2_instance, gcp_gce_instance, k8s_container, etc.) and offers auto detection 8for some of the resources, based on the environment where the application is running. 9 10## Quickstart 11 12### Add the dependencies to your project 13 14For Maven add to your `pom.xml`: 15```xml 16<dependencies> 17 <dependency> 18 <groupId>io.opencensus</groupId> 19 <artifactId>opencensus-contrib-resource-util</artifactId> 20 <version>0.20.0</version> 21 </dependency> 22</dependencies> 23``` 24 25For Gradle add to your dependencies: 26```groovy 27compile 'io.opencensus:opencensus-contrib-resource-util:0.20.0' 28``` 29 30[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master 31[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java 32[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true 33[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master 34[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-resource-util/badge.svg 35[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-resource-util 36