1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-21 19:19:56 +02:00
Tigran Najaryan 46d9687a35
Add Schema URL support to Resource (#1938)
This implements specification requirement:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md#resource-creation

- Changes `resource.NewWithAttributes` to require a schema URL. The old function
  is still available as `resource.NewSchemaless`. This is a breaking change.
  We want to encourage using schema URL and make it a conscious choice to have a
  resource without schema.

- Merge schema URLs acccording to the spec in resource.Merge.

- Several builtin resource detectors now correctly populate the schema URL.

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-06-08 09:46:42 -07:00
..
2021-05-14 13:28:28 -07:00
2021-05-14 13:28:28 -07:00
2021-05-14 13:28:28 -07:00
2021-05-14 13:28:28 -07:00
2021-05-14 13:28:28 -07:00

OpenTelemetry Collector Go Exporter

PkgGoDev

This exporter exports OpenTelemetry spans and metrics to the OpenTelemetry Collector.

Installation and Setup

The exporter can be installed using standard go functionality.

go get -u go.opentelemetry.io/otel/exporters/otlp

A new exporter can be created using the NewExporter function.