Commit Graph

10 Commits

Author SHA1 Message Date
Matthew Wear 83e6af093d
chore: remove duplicate hostname resource attribute (#1581)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-10-09 11:59:16 -04:00
Cong Zou 8b13b07bc8
Feat: Added AWS ECS Plugins Resource Detector (#1404)
Co-authored-by: Bartlomiej Obecny <bobecny@gmail.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-09-23 15:05:20 -04:00
Mihir Soni 0dbcba30d0
feat: process resource detector (#1531)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-09-21 16:23:29 -04:00
Matthew Wear 27e6c2da59
chore!: refer to resource labels as attributes (#1419)
Co-authored-by: Bartlomiej Obecny <bobecny@gmail.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-08-14 15:03:48 -04:00
Mark Wolff e9b2cf9aeb
refactor: remove copyright year from file headers (#1150) 2020-06-12 09:27:21 -04:00
Olivier Albertini 05e7bb9c8f
fix(lint): move tslint to eslint (#892) 2020-05-20 20:42:17 -07:00
legendecas 23677a16f6
refactor: merge opentelemetry-base to opentelemetry-core (#991)
They act a very similar role in the SDK.

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-04-29 10:37:29 -07:00
Matthew Wear 182e9ee8fd
feat: resource auto-detection (#899)
* feat: add resource detection from environment variable

* feat: add AWS EC2 resource detection

* feat: add resource detection for GCP

* refactor: create Labels interface

* feat: add Resource.detect() method

* refactor: improve GcpDetector

* feat: make detection platform aware; extract to detectResources() fn

* chore: cleanup

* chore: prefix private methods with _

* fix: import URL for Node 8

* chore: prefix private constants with _

* chore: do not export resources

* chore: abort request on timeout

* refactor: export instances of detectors instead of static classes

* refactor: formalize Detector interface

* refactor: rename Labels -> ResourceLabels

* feat: gracefully handle detectors that throw

* fix: do not resume in an end event

* docs: document interfaces and idenitity document url

* fix: nock flakiness in resource tests

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-04-15 12:49:15 -04:00
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