f1dad21e47
* Add new propagators package * Move B3 propagator to propagators Update all `api/trace` dependencies in the propagator. Export the isDeferred and isDebug methods of the SpanContext. These are needed by the B3 propagator to track trace state. * Move W3C trace context propagator to propagators * Update package docs with supported encodings * Move unified propagators code to own file * Update b3 exported documentation * Update trace_context exported documentation * Add code examples for B3 propagator * Add TraceContext example code * Remove internal package Move common testing declarations to the propagators_test.go file. * Add changes to Changelog * Add test to check default propagators |
||
---|---|---|
.circleci | ||
.github | ||
api | ||
bridge/opentracing | ||
codes | ||
example | ||
exporters | ||
internal | ||
label | ||
propagators | ||
sdk | ||
semconv | ||
tools | ||
.gitignore | ||
.gitmodules | ||
.golangci.yml | ||
CHANGELOG.md | ||
CODEOWNERS | ||
CONTRIBUTING.md | ||
doc.go | ||
error_handler.go | ||
get_main_pkgs.sh | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
Makefile.proto | ||
otel.go | ||
pre_release.sh | ||
README.md | ||
RELEASING.md | ||
tag.sh | ||
verify_examples.sh |
OpenTelemetry-Go
The Go OpenTelemetry implementation.
Getting Started
OpenTelemetry's goal is to provide a single set of APIs to capture distributed traces and metrics from your application and send them to an observability platform. This project allows you to do just that for applications written in Go. There are two steps to this process: instrument your application, and configure an exporter.
Instrumentation
To start capturing distributed traces and metric events from your application it first needs to be instrumented. The easiest way to do this is by using an instrumentation library for your code. Be sure to check out the officially supported instrumentation libraries.
If you need to extend the telemetry an instrumentation library provides or want to build your own instrumentation for your application directly you will need to use the go.opentelemetry.io/otel/api package. The included examples are a good way to see some practical uses of this process.
Export
Now that your application is instrumented to collect telemetry, it needs an export pipeline to send that telemetry to an observability platform.
You can find officially supported exporters here and in the companion contrib repository. Additionally, there are many vendor specific or 3rd party exporters for OpenTelemetry. These exporters are broken down by trace and metric support.
Project Status
Project boards and milestones can be found at the respective links. We try to keep these accurate and should be the best place to go for answers on project status.
Contributing
See the contributing documentation.