1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/sdk/resource
Aaron Clawson 7674eebf56
Removed different types of Detectors for Resources. (#1810)
* Removed different types of Detectors for Resources.

This change simplifies different types of collectors into one list. The
order of this list determines how they are applied.  Defaults are
applied when the user does not supply any detectors.  To achieve
default behavior and additional behavior a DefaultDetectors struct has been
created

* missed prometheus test.

* Changed behavior around WithDetectors(nil)

Added examples of use of WithDetectors.

* Added NoOp example

* Changed test to reflect acutal default case

This changes because WithDetector() no longer is the same as not using WithDetector()

* Unexports the noOp detector

* Updated changelog

* Fixes to spelling mistakes.

* Added NewEmptyResouce and unexported builtin detectors

* Fix for prometheus example

* Resource has two Rs

I need to get a new R key it seems.

Co-authored-by: Sam Xie <xsambundy@gmail.com>

* Replaced NewEmptyResource() with New()

* Fix test function name

* Comment fixups.

* Apply suggestions from code review

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

Co-authored-by: Sam Xie <xsambundy@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2021-04-29 11:12:48 -07:00
..
auto.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
benchmark_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
builtin_test.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
builtin.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
config.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
doc.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
env_test.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
env.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
export_test.go OS and Process resource detectors (#1788) 2021-04-23 08:28:13 -07:00
os_test.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
os.go OS and Process resource detectors (#1788) 2021-04-23 08:28:13 -07:00
process_test.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
process.go OS and Process resource detectors (#1788) 2021-04-23 08:28:13 -07:00
resource_test.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00
resource.go Removed different types of Detectors for Resources. (#1810) 2021-04-29 11:12:48 -07:00