tree: db150229eb2f98ab9a9967b33c1f781b222fa3bf [path history] [tgz]
  1. .gitignore
  2. .gitmodules
  3. .golangci.yml
  4. CHANGELOG.md
  5. CODEOWNERS
  6. CONTRIBUTING.md
  7. LICENSE
  8. Makefile
  9. Makefile.proto
  10. README.md
  11. RELEASING.md
  12. api/
  13. baggage.go
  14. codes/
  15. doc.go
  16. get_main_pkgs.sh
  17. go.mod
  18. go.sum
  19. internal/
  20. label/
  21. otel.go
  22. pre_release.sh
  23. propagation.go
  24. tag.sh
  25. unit/
  26. verify_examples.sh
vendor/go.opentelemetry.io/otel/README.md

OpenTelemetry-Go

Circle CI Docs Go Report Card Gitter

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.