Language Independent Interface Types For OpenCensus (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Bogdan Drutu 3619b5dda8
Remove unnecessary script (#229)
2 years ago
.github Restrict people who can approve reviews. This is to ensure code quality. (#177) 6 years ago
gen-go Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) 2 years ago
gen-openapi/opencensus/proto/agent Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) 2 years ago
gen-python Start 0.5.0 development cycle (#226) 2 years ago
gen-ruby/opencensus/proto Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) 2 years ago
gradle/wrapper gradle wrapper --gradle-version 4.9 (#72) 6 years ago
src Remove unnecessary script (#229) 2 years ago
.gitignore Update gitignore (#118) 6 years ago
.travis.yml Upgrade bazel and dependencies to latest. (#211) 5 years ago
AUTHORS Fix license in WORKSPACE. (#36) 7 years ago
CONTRIBUTING.md Expands contributing documentation. 8 years ago
LICENSE Fixes license file formatting. 8 years ago
Makefile Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) 2 years ago
README.md Set up Python packaging for PyPI release. (#197) 6 years ago
RELEASING.md Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) 2 years ago
build.gradle Start 0.5.0 development cycle (#226) 2 years ago
go.mod Run go mod tidy, forgot to do after proto updates (#228) 2 years ago
go.sum Run go mod tidy, forgot to do after proto updates (#228) 2 years ago
gradlew Update gradle to 4.0.1 (#37) 7 years ago
gradlew.bat Add support for gradle to build the instrumentation-proto. (#28) 8 years ago
settings.gradle Cleanup readme, license and build files. (#33) 7 years ago

README.md

OpenCensus Proto - Language Independent Interface Types For OpenCensus

Gitter chat Build Status Maven Central Javadocs GoDoc PyPI

Census provides a framework to define and collect stats against metrics and to break those stats down across user-defined dimensions.

The Census framework is natively available in many languages (e.g. C++, Go, and Java). The API interface types are defined using protos to ensure consistency and interoperability for the different implementations.

Quickstart

Install to Go

$ go get -u github.com/census-instrumentation/opencensus-proto

In most cases you should depend on the gen-go files directly. If you are building with Bazel, there are also go_proto_library build rules available. See PR/132 for details. However, please note that Bazel doesn't generate the final artifacts.

Add the dependencies to your Java project

For Maven add to pom.xml:

<dependency>
  <groupId>io.opencensus</groupId>
  <artifactId>opencensus-proto</artifactId>
  <version>0.2.0</version>
</dependency>

For Gradle add to dependencies:

compile 'io.opencensus:opencensus-proto:0.2.0'

Add the dependencies to Bazel project

In WORKSPACE, add:

git_repository(
    name = "io_opencensus_proto",
    strip_prefix = "src",
    tag = "v0.2.0", # CURRENT_OPENCENSUS_PROTO_VERSION
    remote = "https://github.com/census-instrumentation/opencensus-proto",
)

or

http_archive(
    name = "io_opencensus_proto",
    strip_prefix = "opencensus-proto-master/src",
    urls = ["https://github.com/census-instrumentation/opencensus-proto/archive/master.zip"],
)

In BUILD.bazel:

proto_library(
    name = "foo_proto",
    srcs = ["foo.proto"],
    deps = [
      "@io_opencensus_proto//opencensus/proto/metrics/v1:metrics_proto",
      "@io_opencensus_proto//opencensus/proto/trace/v1:trace_proto",
      # etc.
    ],
)