Commit Graph

2 Commits

Author SHA1 Message Date
Matthew Wear abd191bef3
SDK Resource (#846)
* feat: add Resource.empty() method

* feat: add resource to BasicTracerProvider and assign to Spans

* feat: add Resource.createLibraryResource method

* refactor: rename LIBARY_RESOURCE -> TELEMETRY_SDK_RESOURCE

* feat: add resource to ReadableSpan interface

* feat: add Resource to NodeTracerProvider

* feat: add Resource to WebTracerProvider

* refactor: move resource-assertions

* feat: add Resource to instruments

* refactor: add SDK_INFO to core; simplify SDK resource creation

* chore: docs and cleanup

* docs: no need to update the copyright

* chore: move resources to devDependencies where applicable

* refactor: add resource to TraceConfig

* refactor: add resource to MeterConfig

* refactor: change resource visibility on Meter

* refactor: move resource-assertions to test/util
2020-03-11 13:41:22 -07:00
Matthew Wear 3818515501
Resources API: package, semantic conventions, and test utils (#815)
* chore: extract resources into their own package

* feat: resource values can be numbers, strings, or booleans

* feat: add constants for resource semantic conventions

* feat: test utilities for validating resources

* docs: improve docs

* fix: lint errors

* fix: test issues

* Update packages/opentelemetry-resources/LICENSE

Co-Authored-By: Daniel Dyla <dyladan@users.noreply.github.com>

* docs: fix typos

* docs: fix formatting for multi-line comments

* chore: remove unused dependency

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-03-02 10:13:23 -05:00