1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-05 22:54:18 +02:00
OpenTelemetry Go API and SDK https://opentelemetry.io/
Go to file
Matej Gera 7d8e6bd781
Zipkin Exporter: Adjust span transformation to comply with the spec (#1688)
* Adjust instrumentation lib name / version key

* Adjust array attribute serialization

* Adjust span status mapping

- remove `otel.status_description`; use `error` instead for description
- do not report status code if unset
- do not report description if OK or unset
- omit tags if no tag has been mapped
- adjust tests

* Set remote endpoint according to the spec

- See
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/zipkin.md#remote-endpoint

* Fix remaining tests

* Update CHANGELOG

* Add some more tests

* Address PR feedback

- Simplify deletion of redundant error code
- Simplify endpoint rank determination

* More tests for remote endpoint
2021-04-07 13:33:15 -04:00
.github Add Bug report issue templates (#1775) 2021-04-05 12:30:09 -07:00
attribute Comply with OpenTelemetry attributes specification (#1703) 2021-03-17 20:48:43 -04:00
baggage Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
bridge Make TraceFlags spec-compliant (#1770) 2021-04-05 10:21:42 -07:00
codes Update default branch name (#1505) 2021-02-04 11:13:25 -08:00
example Merge sdk/export/trace into sdk/trace (#1778) 2021-04-07 08:03:43 -07:00
exporters Zipkin Exporter: Adjust span transformation to comply with the spec (#1688) 2021-04-07 13:33:15 -04:00
internal Bump github.com/itchyny/gojq from 0.12.2 to 0.12.3 in /internal/tools (#1774) 2021-04-05 08:54:30 -07:00
metric Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
oteltest Adds semantic conventions for exceptions (#1492) 2021-04-01 13:07:46 -07:00
propagation Make TraceFlags spec-compliant (#1770) 2021-04-05 10:21:42 -07:00
sdk Merge sdk/export/trace into sdk/trace (#1778) 2021-04-07 08:03:43 -07:00
semconv Adds semantic conventions for exceptions (#1492) 2021-04-01 13:07:46 -07:00
trace Record links/events attribute drops independently (#1771) 2021-04-06 07:51:15 -07:00
unit
website_docs add website docs (#1747) 2021-04-01 12:36:51 -04:00
.gitignore gitignore: remove unused example path (#1474) 2021-01-19 12:13:49 -08:00
.gitmodules
.golangci.yml
CHANGELOG.md Zipkin Exporter: Adjust span transformation to comply with the spec (#1688) 2021-04-07 13:33:15 -04:00
CODEOWNERS Set @lizthegrey to emeritus status (#1745) 2021-03-29 11:09:09 -04:00
CONTRIBUTING.md Set @lizthegrey to emeritus status (#1745) 2021-03-29 11:09:09 -04:00
doc.go
error_handler.go
get_main_pkgs.sh Build scripts: Replace mapfile with read loop for old bash versions (#1425) 2020-12-29 10:43:05 -08:00
go.mod Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
go.sum Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#1667) 2021-03-08 12:15:49 -08:00
handler_test.go
handler.go
LICENSE
Makefile Fix the examples target info messaging (#1676) 2021-03-08 11:59:41 -08:00
pre_release.sh Update default branch name (#1505) 2021-02-04 11:13:25 -08:00
propagation.go Fix small typo (#1409) 2020-12-17 12:07:09 -08:00
README.md Add compatibility tests to CI (#1567) 2021-03-01 08:38:23 -08:00
RELEASING.md Update default branch name (#1505) 2021-02-04 11:13:25 -08:00
tag.sh
trace_test.go
trace.go nit: Fix comment to be up-to-date (#1510) 2021-02-04 10:36:34 -08:00
verify_examples.sh
version.go Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
VERSIONING.md Add Versioning Documentation (#1388) 2020-12-29 10:34:46 -08:00

OpenTelemetry-Go

CI PkgGoDev Go Report Card Slack

The Go OpenTelemetry implementation.

Project Status

Warning: this project is currently in a pre-GA phase. Backwards incompatible changes may be introduced in subsequent minor version releases as we work to track the evolving OpenTelemetry specification and user feedback.

Our progress towards a GA release candidate is tracked in this project board. This release candidate will follow semantic versioning and will be released with a major version greater than zero.

Progress and status specific to this repository is tracked in our local project boards and milestones.

Project versioning information and stability guarantees can be found in the versioning documentation.

Compatibility

This project is tested on the following systems.

OS Go Version Architecture
Ubuntu 1.15 amd64
Ubuntu 1.14 amd64
Ubuntu 1.15 386
Ubuntu 1.14 386
MacOS 1.15 amd64
MacOS 1.14 amd64
Windows 1.15 amd64
Windows 1.14 amd64
Windows 1.15 386
Windows 1.14 386

While this project should work for other systems, no compatibility guarantees are made for those systems currently.

Getting Started

You can find a getting started guide on opentelemetry.io.

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.

Contributing

See the contributing documentation.